JQL Search

Smart Checklist supports JQL as an approach for searching checklist items values and checklist progress ๐Ÿš€

To use this functionality you may need to set up "Checklists" or "Smart Checklist Progress" custom field. It depends on what main criteria you'd like to search for.

ย 

Contents ๐Ÿ‘‡๐Ÿป

ย 

Guide to set up custom fields:

๐Ÿข Company-managed projects:

๐Ÿ‘ฅ Next-gen projects:

โ˜๐Ÿผ NOTE: If you are using the next-gen project, make sure that the added custom fields has a global context. To add global context to your custom fields, follow the official Atlassian guide.

ย 

Search examples:

๐Ÿ“Š Search by checklist progress:

JQL Search option

JQL query

JQL Search option

JQL query

Issues with opened checklists (not all checklist items completed)
Smart cHECKLISt progressFIELD required

"Smart Checklist Progress" ~ "-Done"

ย 

Issues with ALL completed checklists
Smart cHECKLISt progressFIELD required

"Smart Checklist Progress" ~ "Done"

Issues where there is at least one completed (checked) checklist item
no fields required

issue.property[SmartChecklist].hasClosedChecklistItems = 'true'

Issues where all checklist items are open (unchecked)
no fields required

issue.property[SmartChecklist].hasClosedChecklistItems = 'false'

Issues where there is at least one open checklist item
no fields required

issue.property[SmartChecklist].hasOpenChecklistItems = 'true'

Issues where all checklist items are completed
no fields required

issue.property[SmartChecklist].hasOpenChecklistItems = 'false'

๐Ÿ—’ Search by checklist items:

JQL Search option

You type

JQL Search option

You type

Search for checklists containing specific items
cHECKLISts FIElD required

"Checklists"ย ~ "your item value"
or
"cf[Checklists CustomFieldID]ย ~ "your item value"

Search for an exact phrase in the checklist items or exact checklist items
cHECKLISts FIElD required

"Checklists"ย ~ "\"your item value\""
or
cf[Checklists CustomFieldID]ย ~ "\"your item value\"

Search by number of items
no fields required

issue.property[SmartChecklist].totalChecklistItems > 5

โ˜๐Ÿผ Note: Available operators could be used: >, >=, <, <=, =, !=.

Search by not empty or empty checklists cHECKLISts FIElD required

"Checklists" is not EMPTY

or

"Checklists" is EMPTY

Search by a specified due date or related dates
no fields required

issue.property[SmartChecklist].itemsDates = '2022-11-11'

โ˜๐Ÿผ Note:
Available operators could be used: >, >=, <, <=, =, !=.
Allowed formats for JQL: 'YYYY-MM-DD' or 'YYYY/MM/DD'
Allowed format for data records in checklist items: 'YYYY-MM-DD'

Search by checklist items in the particular status
no fields required

issue.property[SmartChecklist].itemsStatus ~ 'Todo'

โ˜๐Ÿผ Note:
The query returns all the issues where there is at least one checklist item in Todo status.

Use default status (Todo, Done, Skipped, and In Progress) or custom statuses.

Search by particular checklist items in the particular status
no fields required

issue in checklistItemStatus("Item Content", "Done")

โ˜๐Ÿผ Note:
The query returns all the issues where there is the particular checklist item in specified status.

Search works only for an exact match of the value in "Item Content"

To search for the same item in different statuses use OR operator: issue in checklistItemStatus("Item Content", "Todo") or issue in checklistItemStatus("Item Content", "Done")

ย 

๐Ÿ™‹๐Ÿฝโ€โ™‚๏ธ Search by checklist assignees:

JQL Search option

You type

JQL Search option

You type

Search by currently logged user
no fields required

issue.property[SmartChecklist].assignees ~ currentUser()

Search by any user
no fields required

issue.property[SmartChecklist].assignees ~ UserId

โ˜๐Ÿผ Note: donโ€™t use โ€œ@โ€ symbol

Search by custom mention
no fields required

issue.property[SmartChecklist].assignees ~ HRTeam (or your custom mention)

ย 

๐Ÿš€ JQL combinations for more accurate searches:

Operator

JQL Search option

You type

Operator

JQL Search option

You type

AND

Search for not competed checklists with specific number of items

"Smart Checklist Progress" ~ "-Done" AND issue.property[SmartChecklist].totalChecklistItems > 5

Search for not competed checklists with a specific due date

"Smart Checklist Progress" ~ "-Done" AND issue.property[SmartChecklist].itemsDates = '2022-11-11'

Search for not completed checklists which contains specific items

"Smart Checklist Progress" ~ "-Done" AND "Checklists"ย ~ "your item value"

Search for checklists with mentioned current logged user and due date

issue.property[SmartChecklist].assignees ~ currentUser()
AND issue.property[SmartChecklist].itemsDates = '2023-08-01'

Search for checklists with items in the particular status and due date

issue.property[SmartChecklist].itemsStatus ~ 'Todo' AND issue.property[SmartChecklist].itemsDates = '2023-08-01'

OR

Search for checklists with items in particular statuses

issue.property[SmartChecklist].itemsStatus ~ 'Todo' OR issue.property[SmartChecklist].itemsStatus ~ 'In progress'

will return checklists that includes items with in progress or todo statuses

Search for checklists with mentions of current logged user and somebody else

issue.property[SmartChecklist].assignees ~ currentUser()
AND issue.property[SmartChecklist].assignees ~ UserId

will return checklists that includes mentions of the current logged user or somebody else

ย 

ย 

Hope everything works for you! ๐Ÿš€

Related pages