Forums

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

Change parent status based on all subtasks being resolved

Michael Pankau
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 25, 2024

Here's what I'm trying to do:

We have Story issues in a status of 'Pending Bug'. These stories have a variety of subtasks that represent development tasks, testing tasks, bug (bug sub-tasks), etc.

I'm trying to write a rule such that when ever the status of a sub-task changes, we find the parent (the Story), and the evaluate if all of the subtasks that are not of the 'QA Testing Sub-Task' type are in a status of 'Done', 'Closed, or 'Cancelled'. And then, if they are -> change the Story status to 'QA Ready'.

 

I hope that makes sense - thanks for any help!

2 answers

2 votes
Trudy Claspill
Community Champion
September 25, 2024

Hello @Michael Pankau 

Welcome to the Atlassian community!

In the Automation area you can find some rule templates. There is one there for transitioning a parent issue to Done when all its sub-tasks are Done.

Screenshot 2024-09-25 at 6.00.33 PM.png

 

That would be a starting point for your rule. It would need refinement since you don't want to include all the subtasks in your evaluation.

You may need to use a couple of Related Issue Conditions to check your subtasks such as

Some match JQL:
issuetype != 'QA Testing Sub-Task' and status in ('Done', 'Closed, 'Cancelled')

and None match JQL:

issuetype != 'QA Testing Sub-Task' and status not in ('Done', 'Closed, 'Cancelled')

 

0 votes
Benjamin
Community Champion
September 25, 2024

HI @Michael Pankau ,

 

Can't fully remember exactly the steps. But you would look into using branches in your rules set where based on changes in sub-task/parent, it would update vice versa. However, you are on the right track using automation rules to do this.

Hope this helps

 

Suggest an answer

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

Atlassian Community Events