/
Adding items to checklists using SIL
Adding items to checklists using SIL
You may need to extend an existing checklist with additional items.
Steps
Retrieve the current list of checklist items converted from JSON to the
oChecklistItem
structure.oChecklistItem[] items = fromJson(DoD);
Create an item and set the values you require.
oChecklistItem newItem; newItem.name = "Acceptance criteria for each issue met";
Add the new item to the current values.
items += newItem;
Update the custom field by passing it the same collection that was initially extracted from the custom field converted to JSON.
Example
Here is a full example that can be used to add two items to an existing checklist:
SERVER DOCUMENTATION (On Cloud? Go here.)
Have questions? Contact our Service Desk for help anytime.
, multiple selections available,
Related content
Updating checklists using Jira's REST API
Updating checklists using Jira's REST API
Read with this
Getting started with ScriptRunner
Getting started with ScriptRunner
Read with this
Configuring checklists using REST APIs
Configuring checklists using REST APIs
Read with this
Viewing custom field and context information
Viewing custom field and context information
Read with this
Updating checklists using SIL scripts
Updating checklists using SIL scripts
Read with this
Integration with other apps
Integration with other apps
Read with this