/
Updating checklists with new sets of items using SIL
Updating checklists with new sets of items using SIL
A common use case involves clearing the checklist’s existing content and rebuilding it from the ground up.
Steps
Create an empty collection of the
oChecklistItem
struct that will contain the new items.oChecklistItem[] items;
Create an item and add it to the collection.
oChecklistItem newItem; newItem.name = "Unit test passed"; items += newItem;
Update the custom field by passing it the newly created collection converted to JSON.
DoD = toJson(items);
Example
Here is a full example that can be used to update a checklist with a new set of items:
SERVER DOCUMENTATION (On Cloud? Go here.)
Have questions? Contact our Service Desk for help anytime.
, multiple selections available,
Related content
Configuring checklists using REST APIs
Configuring checklists using REST APIs
Read with this
Checklist item representations
Checklist item representations
Read with this
Viewing custom field and context information
Viewing custom field and context information
Read with this
Updating checklists using Jira's REST API
Updating checklists using Jira's REST API
Read with this
Importing a template using ScriptRunner
Importing a template using ScriptRunner
Read with this
Updating items in checklists using SIL
Updating items in checklists using SIL
Read with this