Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to automatically close all linked issues when parent issue closed?

Sunitha
Contributor
September 5, 2018

Is there a way to Close Epics when all child issues are marked done/closed? Right now I noticed we have to change each Epic manually which is very time consuming. 

Thanks,

Sunitha

4 answers

1 vote
Christina Hiller
Contributor
June 5, 2019

You can setup a post function on the transition to close an epic when all linked issues are closed. https://confluence.atlassian.com/adminjiracloud/advanced-workflow-configuration-776636620.html#Advancedworkflowconfiguration-postfunctions 

Here's a screen cap of it configured.   You'll have to figure it on all of your workflows.  2019-06-05_9-36-42.png

0 votes
Daniel Vest May 20, 2024

I know this post is an old one, but maybe someone looking for another way to do this, like I was, and crafted my own way to do this, when the issue being resolved (delivered) is a Major Incident, but the process can still be the same.

  1. Setup a rule that looks for a transition to the desired state/status
  2. A good idea to limit the spread of this based on JQL (in my case I only wanted Major Incidents and the tickets linked to them)
  3. Create a branch for Linked Issues (if you have a custom linked type for MIs then use that, at this time in my Sandbox, I do not, but I am considering this in production)
  4. I added a comment to each ticket (would want to inform the reporters that this is going to be closed/resolved and why
  5. Transition the issues to whatever status is fitting

automation to close linked tickets of Major Incident.PNG

0 votes
Rik de Valk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 6, 2018

Hi, like Nir suggests, you can use ScriptRunner. With Scriptrunner you can create a scripted post function in the workflow for Stories which checks if it is the last unresolved child issue and closes the Epic if true. 

However, bear in mind that users not always want to have the epic closed automatically. A better solution would be to present the user with a screen that asks the user if the epic can now be closed. 

Sunitha
Contributor
September 6, 2018

Hi Rik, Appreciate your response. As I mentioned in my comment to Nir, I am looking for a way to do this without add-on. I'm aware this can be done using ScriptRunner.

I tried Automation Lite but there is a limitation to apply an automation rule to all users in a project and moreover it is working at story level, but not at Epic level

0 votes
Nir Haimov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 6, 2018

Hi,

If you have scriptrunner and you know groovy, you can write a code that will do it for you.

Sunitha
Contributor
September 6, 2018

Thanks for your feedback Nir. I am looking for a way to do this without any additional add-on. We don't have ScriptRunner 

Nir Haimov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 6, 2018

Hi @Sunitha

Unfortunately, there is no way to achieve this natively in Jira without plugin.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events