...
To modify the items you first need to retrieve the current list of items from the custom field.
Code Block | ||
---|---|---|
| ||
def ArrayList<ChecklistItem> existingChecklistValue = (ArrayList<ChecklistItem>) event.issue.getCustomFieldValue(checklistCustomField); |
...
Code Block |
---|
checklistCustomFieldType.updateValue(checklistCustomField, event.issue, existingChecklistValue); |
...
Here Following is a complete example that can be used to modify a checklist by:
...