Info |
---|
This guide is based on Jira built-in automation functionality. |
...
Info |
---|
In this guide, we will transition the issue to Done status when all checklist items are completed. You can also reopen the issue in a similar way if the checklist becomes uncompleted. |
...
- Go to Automation listing page (it is either Project settings > Project automation or Jira Settings > System > Automation rules) and press Create rule button:
- On the New trigger page select Field value changed option:
- On the Field value changed page select Checklist Text Completed (Field) in the first list and next select Edit issue in the second list and press Save button:
- On the Add condition page select New condition option:
- On the New condition page select Advanced compare Issue fields condition option:
On the Compare condition page paste {{issue.properties.checklist.completed}} into the first field, select equals value from the combo list, and paste true value in the second fieldIssue fields condition page paste select "Checklist Completed" from the list of fields, "equals" in the condition dropdown, and "Completed" in the value dropdown. Next, press Save button::
Hint: the above condition is also met when all checklist items are deleted (checklist becomes empty and therefore completed).
If you want to close the issue only when non-empty checklist becomes completed, please add one more Advanced compare condition as presented below {{issue.properties.checklist.allItems}} does not equal 0:
Hint 2: issue.properties.checklist.* values used in this example are issue entity properties set by the Issue Checklist.- On the New component page select New action option:
- On the New action page select Transition issue option:
- On the Transition issue page select desired transition status, e.g. Done and press Save button:
- On the next page, add a name/description to the automation rule and press Turn it on button:
- Test your setup and enjoy
- Go to any issue page,
- add checklist,
- complete the checklist (check all items) and wait a moment (Automation needs time to process the data).
- next, refresh the page and notice that issue is in Done status.
...