Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

First, you will need to create an empty collection (ArrayList<ChecklistItem) that will contain the new items.

Code Block
languagejava
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:

...