Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel6
outlinefalse
typelist
printablefalse

Explore two use cases demonstrating how automation can be applied to checklist item statuses. These scenarios are just examples. Feel free to create rules based on your specific needs.

Use Case 1: Email Notification for Incomplete Checklist Items in Done Issues

If you want to receive automatic notification when an issue is moved to the Done status without all checklist items being completed.

How to Create Rule

  1. Select the Gear icon, and then select Issues.

  1. On the left-side menu, select Custom fields.

  1. In the search box, enter Closed checklist items.

In the search results, Closed checklist items will appear.

  1. On the left side of the page, select three dots.

  2. Hover the mouse over View field information, right-click, and then select Open link in new tab.

For future steps, you will need this custom field ID. Keep the page open to copy and paste the ID once you need it.

Closed checklist items ID.gif

  1. Return to the Custom field page, and then repeat all steps for Total number of checklist items.

For future steps, you will need this custom field ID. Keep the page open to copy and paste the ID once you need it.

Total number of checklist items ID.gif

  1. Return to your project, and then select Project settings.

Project settings.gif

  1. Select Automation.

Automation.gif

  1. Select Create rule.

Create rule.gif

  1. Select Issue triggers, and then select Issue transitioned.

Issue triggers.gif

  1. Select the required statuses, and then select Next.

Info

In our case, we selected the transition from the DONE and IN PROGRESS statuses to the DONE status. For your rule, you may select any statuses you want.

Select statuses.gif

  1. Select IF: Add a condition.

IF Add a condition.gif

  1. Select JQL condition.

JQL condition.gif

  1. Enter the following query, and then select Save:

cf[ID] != 0

where ID is a custom field ID of the Total number of checklist items field (step 6).

Info

In our case, the query looks like cf[10056] != 0. You have to enter your custom field IDs.

JQL and Next.gif

  1. Select IF: Add a condition.

IF Add a condition 2.gif

  1. Select {{smart values}} condition.

smart values.gif

  1. In the First value* field, enter the ID of the Total number checklist items field in the following format:

{{customfield_ID}}

  1. In the Second value field, enter the ID of the Closed checklist items field in the following format:

{{customfield_ID}}

  1. In the Condition field, select does not equal.

Info

In our case, we’ve got the following condition:

{{customfield_10056}} does not equal {{customfield_10055}}.

  1. Select Next.

compare values.gif

  1. Select THEN: Add an action.

THEN Add an action.gif

  1. Select Send email.

Info

Select any action you want to happen, when the rule is executed. In our case, it’s Send email.

Send email.gif

  1. In the To* field, select the recipient(s).

  2. In the Subject* field, enter the required email title.

Info

Your subject might be the following: Warning: The issue {{issue.key}} was moved to Done without completion.

You can come up with any subject you’d like.

  1. In the Content* field, enter a short message.

Info

Your message might be the following: Please note that the issue {{issue.key}} has been moved to the Done status, even though not all checklist items are completed.

You can come up with any message you’d like.

  1. Select Next.

Configure email settings.gif

  1. Select Turn on rule.

Turn on rule.gif

  1. Select the name for your rule, and then enter it into the corresponding field.

  2. Select who can edit this rule, and then select Turn on rule.

Rule name.gif

Tip

Your rule has been enabled.

Enabled.gif

Use Case 2: Mark Issues as Done When All Checklist Items Are Completed

If you want an issue to be automatically moved to the Done status when all checklist items are completed.

How to Create Rule

  1. Select the Gear icon, and then select Issues.

  1. On the left-side menu, select Custom fields.

  1. In the search box, enter Closed checklist item.

In the search results, Closed checklist item will appear.

  1. On the left side of the page, select three dots.

  2. Hover the mouse over View field information, right-click, and then select Open link in new tab.

For future steps, you will need this custom field ID. Keep the page open to copy and paste the ID once you need it.

Closed checklist items ID.gif

  1. Return to the Custom field page, and then repeat all steps for Total number of checklist items.

For future steps, you will need this custom field ID. Keep the page open to copy and paste the ID once you need it.

Total number of checklist items ID.gif

  1. Return to your project, and then select Project settings.

Project settings.gif

  1. Select Automation.

Automation.gif

  1. Select Create rule.

Create rule.gif

  1. Select Issue triggers, and then select Issue updated.

Issue updated.gif

  1. Select Next.

Issue updated - Next.gif

  1. Select IF: Add a condition.

IF Add a condition 2 (1).gif

  1. Select JQL condition.

JQL condition 2.gif

  1. Enter the following query, and then select Save:

cf[ID] != 0 AND cf[ID] != 0

where ID is a custom field ID you’ve got in steps 5 and 6.

Info

In our case, the query looks like cf[10053] != 0 AND cf[10054] != 0. You have to enter your custom field IDs.

JQL and Next 2.gif

  1. Select IF: Add a condition.

IF Add a condition 2_1.gif

  1. Select {{smart values}} condition.

smart values 2.gif

  1. In the First value* and the Second value fields, enter the following values respectively:

{{customfield_ID}} where ID is the ID of the Total number checklist items field, and

{{customfield_ID}} where ID is the ID of the Closed checklist items field.

  1. In the Condition field, select equals.

Info

In our case, the condition is the following: {{customfield_10056}} equals {{customfield_10055}}.

  1. Select Next.

smart values and Next 2.gif

  1. Select THEN: Add an action.

THEN Add an action 2.gif

  1. Select Transition issue.

Transition issue.gif

  1. In the Destination status field, select DONE, and then select Next.

Done and Next.gif

  1. Select Turn on rule.

Turn on rule 2.gif

  1. Select the name for your rule, and then enter it into the corresponding field.

  2. Select who can edit this rule, and then select Turn on rule.

Configure rule 1.gif

Tip

Your rule has been enabled.

Enabled 2.gif