Forums

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

when all the child issue with label Test moved to done, move parent to done

Dommalapati Chandrababu Naidu
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.
April 25, 2025

Hi Team,

 

Please help me with the automation rule to transition the parent to done when all the child issues with label "Test" are moved to done. 

there might be n number of child issues for a parent but when the all the child issues with label " test" moved to done, parent should move to done. 

 

Thanks,

Chandrababu

2 answers

3 votes
Rik de Valk
Community Champion
April 25, 2025

Hi @Dommalapati Chandrababu Naidu , 

Assuming that you mean 'sub-tasks' when you refer to 'child issues', you can use a Rule like this: 

Screenshot 2025-04-25 at 14.24.15.png

Trigger: issue transitioned to Done

Condition: issue type = Sub-Task

Condition: Related work item condition, that looks at Sub-Tasks and uses 'All match specified JQL' and use the JQL 

(status = Done AND labels = "test") OR (labels is EMPTY OR labels != "test")

Action: transition issue to Done. 

This ensures that only when all sub-tasks are either: 

  • Done and have label 'test'
  • Or do not have the label 'test' (or have no label at all)

Have a nice day! 

Rik

Dommalapati Chandrababu Naidu
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.
April 25, 2025

Hi @Rik de Valk

Thanks for the answer!

i have tried above steps you have mentioned earlier but with 'All match specified JQL' will trigger only when all child issues are moved to done. but here the requirement is to move parent to done when all child issues with label "test" moved to done, irrespective of other child issues status and labels for that parent. 

Hope my question is clear. 

Thanks

Rik de Valk
Community Champion
April 25, 2025

If you use the JQL I provided, it will only consider sub-tasks with the label 'test' for checking if they are done. 

3 votes
Piyush Annadate _ACE Pune_
Community Champion
April 25, 2025

Hi @Dommalapati Chandrababu Naidu ,
You need to use Branch in automation rule:
Screenshot 2025-04-25 at 5.55.43 PM.png

Suggest an answer

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

Atlassian Community Events