...
You then create an item and add it to the collection.
Code Block | ||
---|---|---|
| ||
// Create a new Checklist
def item = checklistCustomFieldType.getSingularObjectFromString('{"name": "item name"}');
newChecklistValue.add(item); |
Finally, you update the custom field passing it the newly created collection.
Code Block |
---|
// Update the issue with the new checklist
checklistCustomFieldType.updateValue(checklistCustomField, event.issue, newChecklistValue); |
...