Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this page

Table of Contents

This page will describe the steps required to setup an automation rule that when trigged (i.e. by transitioning an issue) adds new checklist items to the issue composed out of dropdown field values (Component field in this example).

...

  1. On the page Project settings > Automation > Rules click on the button Create rule

  2. In the New Trigger panel select the Issue Transitioned trigger

    After you have selected the right transition click on Save to proceed

  3. Add any appropriate conditions and save.

  4. Click the New action button to add a new action

  5. Select the Create issue option in the panel that appears

...

  1. and select the option Edit issue

  2. The dropdown button Choose fields to set…; allows you to select the field to update in

...

  1. automation; choose the field Checklist Text.

...

  1. and fill the Checklist Text textarea with a code similar to the

...

  1. following code snipped (you may want to add a checklist title as is the case in the code snippet that follows).

Code Block
--- Checklist Title
{{#issue.components.name}}
* [open] {{.}}
{{/}}
Info

In this example the needed values are taken form the smart value issue.componentsbut they can be taken from any other dropdown field including custom fields. Learn more on smart values here. Take note of the hash sign # before the field name, this indicates an iteration over the values of a field that can contain more than one value.

...

Once you click on

Save you are presented with a screen that asks you for the name of your rule. Set a name and click on Turn it on.

Testing your changes

Create an issue of the type of issues the rule we created above can handle. Fill the dropdown field that the rule reads (in our case the issue.component field) with more than one value. Generate an action that will trigger the rule execution (in our case moving the created issue of type bug to Done).

After the transition is done, a new issue is created with a checklist on it that has the value of the dropdown fields as items.

...

and publish the rule. Note that when an issue is updated, you may need to refresh to see the new checklist.