Transition Epic only when stories are in certain state

Is it possible to write a codition that prevents an epic from changing states if the linked stories are not in the right state? Epics do not have parent/child relationship from what I can tell.

2 answers

1 accepted

This widget could not be displayed.

If I use the following as a condition on the Done transition for the Epic, it works:

import com.atlassian.jira.ComponentManager
import com.atlassian.jira.issue.Issue
import org.apache.log4j.Category
import com.atlassian.jira.component.ComponentAccessor

passesCondition = true

linkMgr = ComponentManager.getInstance().getIssueLinkManager()
for (IssueLink link in linkMgr.getOutwardLinks( {

    if ("Epic-Story Link")) {
        if (! link.getDestinationObject().getStatusObject().getStatusCategory().key.equals("done")) {
            passesCondition = false

return passesCondition

This widget could not be displayed.

This is not currently possible with JMWE 3.3.0, but it would certainly be an interesting enhancement. If you are interested, can you please create a Enhancement Request on our issue tracker at

Please specify your use case in as much details as possible. In particular, please specify whether you're interested in a Condition, which will simply hide the transition when the condition is not met, or a Validator, which will allow the transition to begin but will display an error message after you hit the submit button.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Jul 25, 2018 in Marketplace Apps

Jira Cloud and Bitbucket Cloud Integration with Microsoft Teams

One of the newest products in the Microsoft family - Microsoft Teams,  is a chat-based hub for teamwork that integrates all the people, content, and tools your team needs to be more engaged and ...

721 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you