You can manipulate Checklists by using the REST APIs from v4 and above.
|
The schema for a Checklist is an array of JSON Checklist item
[checklist-item, ...] |
{ "update": { "customfield_10101": [ { "set": [ { "name": "Code Review", "checked": false, "mandatory": true, "option": true, "id": 10003 }, { "name": "Reviewed by Architect", "checked": false, "mandatory": true, "option": false, "id": 1, "status": { "id": "inProgress" } } ] } ] } } |
Parameter | Sub-parameter | Description | Data Type | Accessibility |
---|---|---|---|---|
name | Indicates the name of the Checklist item. | String | read-write | |
id | Indicates the ID for the Checklist item. It is not necessary to set the item ID as it is automatically created. If you do set an ID, ensure that it is unique across the entire Checklist. | Number | read-write | |
rank | Indicates the rank of the item in the Checklist. Rank starts from 0. While updating the Checklist, the rank value is ignored and the order used is the order in which they are set in the array of Checklist items. | Number | read | |
checked | Indicates if the item is checked. | Boolean | read-write | |
option | Indicates if the item is an option. It this value is set to true, the ID of the item must be set to a valid option ID. Options cannot be created through this REST interface. If the option value is set to true and ID is not provided, the option value is ignored. | Boolean | read-write | |
mandatory | Indicates if the item is a mandatory one. | Boolean | read-write | |
status | Indicates an object containing the status information. | Object | read-write | |
name | Indicates the name for the status. | String | read | |
id | Indicates the status ID. | String | read-write |
|