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
Community Members
Community Events
Community Groups

How do I set the Epic as Done if all Stories are Done with Automation for JIRA?

andreas Rising Star Jan 18, 2017

I'd like to automatically transition the parent Epic to 'Done' when all stories in that Epic have been finished.  Is this possible with Automation for JIRA?

3 answers

1 accepted

0 votes
Answer accepted
andreas Rising Star Jan 18, 2017

Yes this is possible with the related issues action and condition! Here's an example rule:

Project automation - Code Barrel JIRA 2017-01-19 08-27-16.png

Here's what this does:

  • The rule is triggered when any issue is transitioned
  • Next we check with a JQL condition that the issue was a story and it's now set to 'Done'
  • Then we branch off using the related issues action for the Epic of this story
    • We then check if all stories in this Epic match status = Done
    • If that's true we transition the Epic to 'Done' as well



Hi Andreas,


I've tried both your version and my modified version below and unfortuantley it's not working. What's weird is that I have 2 tasks linked to the Epic. When I transition both from To Do to Done, nothing happens. But then when I transition 1 (either) of the tasks back to "To Do" from "Done" it updates the status of the Epic from To Do to Done.

Of course, it should be updating the status when the both tasks linked to the epic transition to Done.

2017-08-30 at 6.57 PM.png

andreas Rising Star Aug 30, 2017

Hi Dom,

So that's strange - your rule looks correct to me.

Can you please raise a support request at and include:

  • Screenshot of your rule's audit log
  • Screenshot of the issue history tab showing the transition



Andreas thanks for the speedy reply CBS-3090

Like Karl FURGEROT likes this

@andreas The branch is possible only with the PRO version, any workaround for the free version of automation?

0 votes

@andreas @Jenny Severin @Gianni Pucciani @Dom Esposito 

How to do this with out using Automation for JIRA plugin 

we have only script runner can anyone suggest me how to achive this.

@Rajesh Ramankutty Sorry, I do not have any experience with script runner

Hi @Rajesh Ramankutty not sure if with ScriptRunner you can do the same, but with JMWE I do a similar operation with Stories and Subtasks. 

Update parameters of the Transition parent issue (JMWE add-on) Function for this transition.

Then in the parent you need to have a condition like this:

All sub-tasks must have one of the following statuses to allow parent issue transitions: DONE CLOSED or CANCELED 

Thank you @Gianni Pucciani 

Question: We are using Sub-Tasks and Tasks in an Epic to manage onboarding.  I am able to get the Epic to close when all Tasks are completed, but it does not close when a sub-task of the Epic is closed. 

In the audit log when the final sub-task was closed, the action details stated:

"This rule was configured with a project restriction. You can change this restriction in the 'Rule details' section. Only issues from the following projects or project types will be considered:HR"

Is there something wrong in my Automation rule?

@Jenny Severin did you get resolution for the above issue?

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events