Automation to Create Task and Sub-Task under it when Epic is created

Arun Unnikrishnan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2024

I am trying to build an automation to standardize the out process. 

When an Epic is created, 

Automatically create Task 01, Task 02 under the Epic 

And Create SubTask 01 and SubTask 02 under Task 01 

SubTask 03 and SubTask 04 under Task 02

Below is what I tried but not able to achieve what i want. The task and Sub-task is getting created under the epic. I am aware that I can achieve this using two automations but I would like to know if this can be done using a single automation. 

Screenshot 2024-07-02 203520.png

Screenshot 2024-07-02 203531.png

 

Nb: have already gone through some older posts in community and that didn't help. 

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 2, 2024

Hello @Arun Unnikrishnan 

You need to change your For Each branch from "Current Issue" to "Most Recently Created Issue".

Creating a new issue within a rule does not automatically make it the "current issue" (the issue upon which the rule will operate). So you need to change the focus of the rule to that newly created issue using the "most recently created issue" option.

Arun Unnikrishnan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2024

Thanks @Trudy Claspill 

 

Lets say the automation ran and created the Task 01, now the the rule will check for the Most Recently created issue and create sub-task under it. Fair enough. 

What if soon after Task 01, someone manually creates another issue (could be task or sub-task)x, will this affect the automation? Asking this since 'Most recently created issue' will only only for the issues created using automation OR will check for all issues irrespective of who created it. 

Like John Funk likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 2, 2024

"Most recently created issue" is limited to the context of the Automation Rule's current execution. It doesn't consider issues created in other ways; by users, by other automation Rules, by integrations with other tools.

Arun Unnikrishnan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 2, 2024

Thanks for the clarification @Trudy Claspill 

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events