This documentation is for version 4.x. For the latest documentation, click here
Modifying Checklists using a REST API
You can manipulate Checklists by using the REST APIs from v4 and above.
- To retrieve an issue's checklist data, you must use the Get Issue REST API.
- To create an issue and supply checklist data, you must use the Create Issue REST API.
- To update the checklist data of an existing issue, you must use the Edit Issue REST API.
- To get the default value (options) of a checklist, you must use the CreateMeta REST API or EditMeta REST API. They are available in allowedValues property. (Only status ID is available with Meta API's. The status name is not)
JSON Schema Information
Checklist Schema
The schema for a Checklist is an array of JSON Checklist item
checklist
[checklist-item, ...]
Sample Request Payload
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" } } ] } ] } }
Request Parameter Description
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 |