Versions Compared

Key

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

...

To modify the items you first need to retrieve the current list of items from the custom field.

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

...