Automation to close parent ticket when all child tickets are closed

Alon Yehezkel
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!
November 20, 2024

I have a Jira ticket - a parent.
And a few linked issues from several projects for the same parent.
How can I close the parent if ALL the linked issues are closed?
I was able to do it if only 1 ticket was linked to the parent, but when I have several I get stuck. 
Thanks!

2 answers

0 votes
Dan Breyen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 20, 2024

Hi @Alon Yehezkel Atlassian provides some Automation Templates that you can use.  I found this one specific to closing the parent when the children are resolved that is probably pretty close to what you're trying to do. 

Check it out here.  From inside the application, when you're looking at your automations, there should be a Templates tab that will take you to the predefined templates.  I've used several of those in my instance and then tweaked them to fit my application.

Hope that helps.

0 votes
Thorsten Letschert _Decadis AG_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
November 20, 2024

Hey @Alon Yehezkel ,

Welcome to the Atlassian Community!

Could you please share some additional information that might help suggest the best answer?

  • You're explicitly stating that this question is related to a parent. Are sub-tasks involved? If so, is the status of those sub-tasks also affecting the mechanism you're trying to implement?
  • Can you share the automation that you've implemented and that is working for your "only 1 ticket linked" scenario?

From what you've provided, I'd assume that you need the following high-level approach:

  • Since you're referring to "several projects", you'll probably need a global automation rule that's at least running for all the projects involved.
  • The trigger might then listen for "ticket closing", which could be read via status or resolution.
  • You'd then have to a) check for the existence of your "linked parent", as well as b) check for the status/resolution of all linked issues in place for your "linked parent" (including the one that triggered the rule).
  • If all of those qualify as "closed" (again: status? resolution?), you'd want to transition the "parent" to closed as well.

I hope that's helpful! Looking forward to hearing from you!

Cheers,
Thorsten

Alon Yehezkel
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!
November 20, 2024

Hi @Thorsten Letschert _Decadis AG_ 
Thank you for your help.
This is the automation currently working with 1 linked issue:

Screenshot 2024-11-20 105813.png

and this is example the use case I want to solve, in the picture below, when these 2 linked issues are in status "done" I need to change the status to "done" also the main task (BIP).
image.png

Suggest an answer

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

Atlassian Community Events