Condition to Block Transition if Linked to certain Epic

I would like to only allow closing an issue if it is not Linked to a certain Epic. I am trying to use the Value Field condition to do this and have no idea what kind of comparison I should be doing. The Epic has an issue number of CG-6894, short name "Dealer Tools/Dashboard", and Epic Name of "Dealer Tools, reporting, dashboard". I have tried all of the following and none seem to work:

 

  • The field Epic Link will have to be not equal to value 'Dealer Tools, reporting, dashboard'. Compared as String.
  • The field Epic Link will have to be not equal to value 'Dealer Tools/Dashboard'. Compared as String.
    The field Epic Link will have to be not equal to value 'CG-6894'. Compared as String.
    The field Epic Link will have to be not equal to value '6894'. Compared as Number.

The last one actually blocks transition of all Issues regardless of the Epic Link.  What kind of value and comparison type should I be using to place a condition on the Epic Link field?

1 answer

1 accepted

This widget could not be displayed.

Support answered it for me. Apparently you need to use an Option ID comparison and sniff our the ID by looking at URLs:

Hi Oliver,

Thanks for contacting Atlassian Support

I've performed some tests and in fact it doesn't seem that JIRA is comparing the Epic Link / Name as String. I found that the best way to have that accomplished is using 'Option ID' instead. To find an issue/epic ID, open the issue and mouse over the "Edit" button. Look at the displayed URL at the bottom of the page.

I hope it helps

Cheers,
Paulo
Atlassian Support

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

45 views 2 2
Join discussion

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