How to set fixversion depending on issue resolution value

I need to ensure that as an issue is resolved as anything other than Fixed, the FixVersion is set to Not Applicable.

1 answer

Hi Nick,

Apparently there may be no standard JIRA configuration which may allow you to achieve this requirement.

However, I believe that this may be possible by using JavaScript which will update the FixVersion field automatically based on the issue resolution. You may kindly refer to the following documentation which may contain some example that can be used for you to achieve this:

Though it's not much, I hope that this will help!

Thanks Ahmad, but it seems there may be a way, using JIRA Scripting Suite.

I found this code snippet today :

If you want to clear out your Fix Version (say when you Close - Won't Fix something) you need to pass an empty list.

if (issue.getResolutionObject().getName() \!= 'Fixed'):

However it gives me an error :

Root cause SyntaxError: ("mismatched character '!' expecting '\\n'", ('<string>',1,43, "if (issue.getResolutionObject().getName() \\!= 'Fixed'):\n"))

So maybe the snippet is incomplete. Anyone help, please ?

If I add the '\\' escapes then I get the same error with more of them !

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 ...

2,937 views 12 18
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