Create Sub-tasks Based on Items in Order with Automation for Jira

Have you ever wondered how to split a request from Checkout into multiple tickets for different teams to fulfill the order? Here is a solution that users automation for Jira.

Instructions

  1. In Jira Automation, click Create rule

  2. Add the Issue created trigger

  3. Add an Issue fields condition to make sure the rule only executes when issues of the Checkout issue type are created

  1. Click FOR EACH > Advanced branching

  2. Add the smart value: {{issue.properties."com.mumosystems.checkout-order".items}}

  3. Name it: item and then click Save

  4. Inside the For each branch, add a new Advanced compare condition

    1. For the First value, type: {{item.itemTitle}}

    2. The Condition should be contains but can be modified later to suit individual needs

    3. The Second value will be SSD, but once again, this can be changed to any value depending on individual requirements

    4. Click Save when done

  1. After the condition, add a Create issue action

    1. Change the issue type to Sub-task

    2. Add a summary, such as: New item requested! {{item.itemTitle}}

    3. Click Save when done configuring any other fields

Due to a limitation with Jira Automation, in order to add multiple conditions, the entire For each block must be copied and added as new components with the condition changed inside it.

For more information, view the accepted answer here: https://community.atlassian.com/t5/Jira-Software-questions/Jira-Automation-quot-For-each-quot-loop-with-Multiple-quot-if/qaq-p/2294847

  1. At this point, you can give your automation rule a name and click Turn it on 

 

 

 

Write into our Support Desk with any questions you have.