Checklist item representations
Checklist items can be represented in different ways.
This guide will provide the different structures in which items can be found and interacted with.
On this page:
JSON (Jira REST API)
When interacting with Checklist in Jira REST APIs, the structure will always be an array of checklist item objects.
[checklistItem, checklistItem, ...]
The properties of each checklist item is as follows:
Parameter | Type | Description | Accessibility | ||
---|---|---|---|---|---|
| String[] | A list of the usernames to which the item is assigned (only one assignee is currently supported). Can only be set if the User Assignment setting is enabled. | read-write | ||
| Boolean | Whether the item is checked or not. A disabled global item cannot be checked. | read-write | ||
| String | The due date of the item as an ISO string. Can only be set if the Due Dates setting is enabled. | read-write | ||
| Number | The internal unique ID of the global item to which this item is linked. When no ID is set, the item is considered to be a local item. | read-write | ||
| Number | The ID for the checklist item. | read-write | ||
| Boolean | Whether the item is a header or not. | read-write | ||
| Boolean | Whether the item is mandatory or not. | read-write | ||
| String | mandatory The name of the checklist item. | read-write | ||
| Boolean | deprecated since 5.0 removed since 6.2.2 Use | read-write | ||
| String | The numeric priority ID of the item as a string. | read-write | ||
| Number | The rank of the item in the checklist, starting from 0. When the checklist is updated, the rank value is ignored, and the order in which the items are set in the array of checklist items is applied. | read | ||
| Object | The object that contains the status information. Only valid status IDs are accepted. Also comes with the following sub-parameters: | read-write | ||
| String | The name of the status. | read | ||
| String | The status ID. | read-write |
JSON
The JSON structure differs slightly whenever you are working outside of Jira REST APIs. You will most likely find this structure when working with JSON in the Checklist custom REST APIs or when working with the Java class.
JSON property | Type | Description |
---|---|---|
| Number | The unique identifier, which can be ignored when creating items. |
| Number | deprecated since 5.0 removed since 6.2.2 Replaced by |
| Number | The identifier of the global item, which only needs to be provided if you want to modify a global item. |
| String | The name of the item; this is the only mandatory property to create a checklist item. |
| Boolean | Whether the item is checked or not. |
| Boolean | Whether the item is a header or not. |
| String Array | The list of the usernames to which the item is assigned (only one assignee is currently supported). |
| String | The due date of the item in ISO format. |
| String | The numeric priority ID of the item as a string. |
| Boolean | Whether the item is mandatory or not. |
| Number | The order of the item. |
| String | The status ID of the item ( |
Java class
The ChecklistItem
Java class uses public methods (as opposed to properties). The class is particularly useful when used in direct code-accessing scripting (like Groovy) or in app-integrations.
Here is a list of the ChecklistItem
class public methods:
Method | Return value | Description |
---|---|---|
static
| ChecklistItem | An alternate way to create a new checklist item. You should not use this approach if you are creating items with a The parameter is expected to be a JSON representation of the item. |
| String | Returns the due date formatted in the desired format (see the Available formats). |
| List<String> | The usernames of the users to which the item is assigned. |
| String | The due date (and time) of the item in ISO format. |
| Integer | The ID of the global item (previously known as an “option”), if applicable, otherwise -1 is returned. |
| Integer | Unique identifier for the item. |
| Boolean | Whether the item is a header or not. |
| String | The name of the item, including Markdown and the description. To learn more about Markdown and descriptions, see Using special formatting and Adding descriptions to items or headers. |
| String | The name of the item, without the description. Passing |
| Long | deprecated since 5.0 removed since 6.2.2 Use |
| String | The numeric priority ID of the item as a string. |
| String | The name of the priority assigned to the item. This searches Jira’s priority scheme. If the item’s priority ID is not found in the scheme, an empty string will be returned. |
| Integer | The rank of the item in the checklist. |
| String | The status ID of the item ( |
| Boolean | Whether the item has a status or not. If |
| Boolean | Whether the item is checked or not. |
| Boolean | Whether the linked global item (previously known as an “option”) is disabled or not. |
| Boolean | Whether the item is a global item (previously known as an “option”) or not. |
| Boolean | Whether the item is mandatory or not. |
| Boolean | Deprecated since 5.0 removed since 6.2.2 Use |
| Void | Changes the users to which the item is assigned. To learn more about assignees, see Assigning users to items. Only the first assignee is taken into account. |
| Void | Changes the checked state of the item. |
| Void | deprecated since 5.0 removed since 6.2.2 Use |
| Void | Changes the due date of the item. |
| Void | Changes whether the item is a header or not. |
| Void | Changes the mandatory state of the item. |
| Void | Changes the item name, including Markdown and the description, as required. To learn more about Markdown and descriptions, see Using special formatting and Adding descriptions to items or headers. |
| Void | Changes the priority ID of the item. |
| Void | Changes the rank of the item. Global item ranks cannot be changed. Setting an item’s rank to a rank already in use by another item will have unpredictable results. The changed item may end up before or after the other item. |
| Void | Changes the status ID of the item. |
| String | Returns the JSON representation of the item. |
oChecklistItem SIL structure
This structure makes it easier to manipulate checklist items in SIL scripts without having to worry about the back-end JSON format.
Field | Type | Description |
---|---|---|
assigneeIds | String[] | A list of the usernames to which the item is assigned (only one assignee per item is currently supported). |
checked | Boolean | Whether the item is checked or not. |
dueDate | String | The due date of the item as an ISO string. |
globalItemId | Number | The internal unique ID of the global item to which the item is linked. When no ID is set, the item is considered to be a local item. |
id | Number | The ID for the checklist item. |
isHeader | Boolean | Whether the item is a header or not. |
mandatory | Boolean | Whether the item is mandatory or not. |
name | String | MANDATORY The name of the checklist item. |
priorityId | String | The numeric priority ID of the item as a string. |
rank | Number | The rank of the item in the checklist, starting from 0. When the checklist is updated, the rank value is ignored, and the order in which the items are organized in the array of checklist items is applied. |
statusId | String | The status ID of the item. |
since checklist 6.1.0 since connector 1.0.1 linkedIssueKey | String | The key of the issue resulting from an item-to-issue conversion. |
Smart Value
The Smart Value representation is very similar to the JSON representation, the biggest difference being that the assignee’s information is directly available to improve usability in the automation rules.
Smart Value | Description |
---|---|
| The ID for the checklist item. |
| The internal unique ID of the global item to which the item is linked. When no ID is set, the item is considered to be a local item. |
| The name of the checklist item, including its description and Markdown formatting. |
| Whether the item is checked or not. |
| The assignee's full name. |
| The assignee's username. |
| The assignee's email address. |
| The due date of the item as an ISO string. |
| The numeric priority ID of the item as a string. |
| Whether the item is mandatory or not. |
| The rank of the item in the checklist, starting from 0. |
| The status ID of the item ("none" if no status is selected). |
| The name of the item’s status. |
Previous state of items
All values can be accessed in their previous state by appending last
at the start of the value and capitalizing the first letter of the value.