The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

automation rules - create subtask after resolved previous

Baran Viktor
February 7, 2022

Hello, I would like to ask for your help. I need simple automation rule but unfortunately after a lot of attempts still not working. I'm creating task - it has 2 subtasks - after resolving one of this subtask should be created a new subtask - that's not working. Please check picture below. I also tried with matching labels, etc. still not working.

Screenshot 2022-02-07 at 13.45.01.png

3 answers

2 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Pramodh M
Community Champion
February 7, 2022

Hi @Baran Viktor 

Welcome to the Community!!

Checking with labels is not a good approach I would say!!

As @Jack Brickey mentioned you need to have two rules in place to check with trigger and condition

The first one is Issue Created for Task Issue Type

Trigger - Issue Created

Condition - Issue is not Sub-task

Action - Create Sub-Task
The Second one is Issue Created when one Sub-task is resolved

Trigger - Issue Resolved

Condition - Issue is Sub-task

Branching - For Parent Issue

Condition - Check if the number of Sub-tasks for Task is 2 by smart value 

{{issue.subtasks.size}}

Action - Create Sub-Task

Let me know if you have any queries

Thanks,
Pramodh

0 votes
Answer accepted
Jack Brickey
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 Champions.
February 7, 2022

You need to break this into two rules. The first will create the first sub-task when issue created. The second triggers on issue transitions with conditions of it being the first subtask.

0 votes
Baran Viktor
February 7, 2022

Great! Now it's finally working:) Thank you very much.

Pramodh M
Community Champion
February 7, 2022

Could you please mark the answer as accepted

Baran Viktor
February 7, 2022

ofc :) maybe one more question - when last substask resolved - how can I setup that first trigger issue will be set resolved as well?