...
First, you will need to create an empty collection (ArrayList<ChecklistItem
) that will contain the new items.
Code Block | ||
---|---|---|
| ||
def ArrayList<ChecklistItem> newChecklistValue = new ArrayList<ChecklistItem>(); |
...
Code Block |
---|
checklistCustomFieldType.updateValue(checklistCustomField, event.issue, newChecklistValue); |
...
Here Following is a complete example that can be used to update a checklist with a new set of items:
...