Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

When a story has multiple sub tasks transition parent

Need the story status to transition..

If the story has 3 sub tasks

1 is to do

1 is in progress

1 is done

In this scenario the status of the parent should be in progress until all of the sub tasks are done.

The popular automation templates I found moves the parent to done

https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/1357125

https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/140671

I think I need if/then added to the template but not sure exactly how to do this.

I am pretty sure someone has already set up an automation to do this.

 

1 answer

1 accepted

2 votes
Answer accepted

I think what you are wanting is to have the Parent task moved to In progress when the first subtask moves to In progress. The parent task stays in the In progress status until the last subtask moves to done at which point the parent task also moved to done. 

Let me first refer you to this post - How-do-I-automatically-trigger-a-status-change-on-a-parent-issue 

If you have a rule that you are working on please share it here and I can help assess where it might be stuck.

Thank you for helping

The link you provided isn't working for me

You are correct I do want to have the Parent task moved to In progress when the first subtask moves to In progress. The parent task stays in the In progress status until the last subtask moves to done at which point the parent task also moved to done. 

Attached is what I made and it moves the parent to done when 1 of 3 subtasks are done.

transition rule.jpg

Hi @PATRICIA MURPHY 

Adding to what Jack suggests and your question, the two example rules you note will do exactly what you requested.  What part is missing for you need?

You would only need the if/else rule component when you want to combine these and perform the operation in one rule.

Kind regards,
Bill

@Bill Sheboy @Jack Brickey 

Hi

The rule I made moves the parent to done when only 1 of 3 of the sub tasks are done.

I want the parent to stay in progress until all 3 sub tasks are done.

Is there something in the rule or an issue scheme or post transition function I need to implement to achieve the results I am wanting?

Thank you for your help

Pat

I have corrected the link above. Oddly I cannot get back to that blog so I gave you a different source to solve your goal. Also yo might find this video useful - https://youtu.be/DcPYrw-Puus 

 

Like Bill Sheboy likes this

Patricia, in the second rule you reference...

https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/140671/25000987

Please note there is a related issues condition.  That is what checks that all of the subtasks are done before moving the parent to done.

Like PATRICIA MURPHY likes this
Jack Brickey Community Leader Jan 13, 2022

@PATRICIA MURPHY , yes as shown that is exactly what I would expect your rule would do, there is no condition checking if all subtasks are in Done. Can you review the new link I sent and video?

Like PATRICIA MURPHY likes this

Hi @Bill Sheboy @Jack Brickey 

I created and enabled 3 rules in my project.

1. Update the parent status to in progress when any sub-task transitions to in-progress.

2. Update the parent to complete when all sub-tasks are complete.

3. Update all sub-tasks to Accepted when the parent "Story" is Accepted.

This seems to be working for my use cases.

Thank you for your guidance.Automation help request.jpg

Like # people like this
Jack Brickey Community Leader Jan 22, 2022

Awesome! You are now an automation guru!

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

455 views 2 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you