Close issue when all checklist items are completed

This guide is based on Jira built-in automation functionality.

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.

Prerequisites

"Save checklist data to Jira custom fields" option must be enabled in Issue Checklist Global Settings

Guide

  1. Go to Automation listing page (it is either Project settings > Project automation or Jira Settings > System > Automation rules) and press Create rule button:



  2. On the New trigger page select Field value changed option:



  3. On the Field value changed page select Checklist Completed (Field) in the first list and next select Edit issue in the second list and press Save button:



  4. On the Add condition page select New condition option:



  5. On the New condition page select Issue fields condition option:



  6. On the Issue 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 avoid this case, please add another condition that checks if Checklist Text custom field is not empty. 

  7. On the New component page select New action option:



  8. On the New action page select Transition issue option:



  9. On the Transition issue page select desired transition status, e.g. Done and press Save button:



  10. On the next page, add a name/description to the automation rule and press Turn it on button:



  11. Test your setup and enjoy (smile)
    1. Go to any issue page,
    2. add checklist,
    3. complete the checklist (check all items) and wait a moment (Automation needs time to process the data).
    4. next, refresh the page and notice that issue is in Done status.

Please note that the transition to Done must be possible according to the workflow defined in the current project. Otherwise, the transition attempt will fail.