Specifying an issue resolution transition condition?

I have created a Jira transition called "Abandon Issue". I would like this transition to be used for closing issues with any resolution other than "Fixed". I have added the following transition condition:

The field Resolution will have to be not equal to value 'Fixed'. Compared as String.

However, it's not working. When I click the "Abandon Issue" button, I can choose "Fixed" in the issue resolution screen and the issue transitions to "Closed" without any error messages. What am I doing wrong?

1 answer

1 accepted

It turns out what I was looking for was a transition validator rather than transition condition. I just had to install the Script Runner add-on and then create a script validator like this:

issue.resolution?.name != 'Fixed

Yes, a Condition stops you executing the transition, and works off current data before the transition starts. So it always passed your code because the current resolution was null.

Another option would be to not ask the user for a resolution - instead, use a post-function to set it to "abandoned" or whatever the most appropriate resolution is.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,264 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot