Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,273
Community Members
 
Community Events
165
Community Groups

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

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

3 answers

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

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. 

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 Sep 06, 2018

Hi,

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

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 Sep 06, 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
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

154 views 0 4
Join discussion

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