We have a new documentation site. Please go here to see the latest.

Transition Issue When an Indicated Checklist Complete

These rules are made to run on issues that have multiple checklists. They allow you to transition an issue when items (all items or all mandatory items) on a given checklist are complete.

 

 

Limitations

If you are using Checklist for Jira ENTERPRISE , note that this rule will not respond to, and cannot update items in Global Checklists. The rule is uses the Checklist Text custom field. Global Checklists are not saved to the custom field and therefore cannot be referenced by the automation rule.

 

Modifications

This example uses the Field valued changed trigger. You can modify the rule to use another trigger. Do not use the generic Issue updated trigger because when a checklist item status changes, an “issue updated” event is sent by Jira which will make the automation rule run repeatedly.

Transition Issue When All Items on Given Checklist Complete

  1. Ensure the Save local checklist items to Jira custom fields global setting is enabled.

  2. Navigate to Project Settings > Automation (or Jira Settings > System > Automation rules).

  3. Click Create rule.

  4. Select Field valued changed trigger and Checklist Text as the field to be monitored. Click Save.

  5. Click New condition and select advanced compare condition.

  6. Enter the custom field ID for the first value {{issue.Checklist Text}}

  7. Select contains regular expression in the condition dropdown.

  8. Enter (\n|.)*(# Name of the Checklist|--- Name of the Checklist)(\n(\* |---|>> )(?!\[(|open|in progress|yes)]).*)+(\n#.*|\Z)(\n|.)* for the Regular expression, substituting in the name of the indicated checklist. You will also need to modify the expression if you are using custom statuses.

  9. Click Save.

  10. Click New action and select Transition issue.

  11. Select the Destination status and click Save.

  12. Name the rule and click Turn it on.

Transition Issue When All Mandatory Items on Given Checklist Complete

  1. Ensure the Save local checklist items to Jira custom fields global setting is enabled.

  2. Navigate to Project Settings > Automation (or Jira Settings > System > Automation rules).

  3. Click Create rule.

  4. Select Field valued changed trigger and Checklist Text as the field to be monitored. Click Save.

  5. Click New condition and select advanced compare condition.

  6. Enter the custom field ID for the first value {{issue.Checklist Text}}

  7. Select contains regular expression in the condition dropdown.

  8. Enter (\n|.)*(# Name of the Checklist|--- Name of the Checklist)(\n(\* |---)(?!(\[] |\[open] |\[in progress] |\[yes] )).*)*(\n#.*|\Z)(\n|.)*
    for the Regular expression, substituting in the name of the indicated checklist. You will also need to modify the expression if you are using custom statuses.

  9. Click Save.

  10. Click New action and select Transition issue.

  11. Select the Destination status and click Save.

  12. Name the rule and click Turn it on.