Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set fixVersion on issue status change

Sven Lüttmann August 27, 2020

Hi all,

I have tried several things, searched the web and the JIRA community to find a solution but didn't succeed until now, so I hope someone has an answer!

What I would like to do, is to set the field fixVersion of the current issue on status change (e.g. "Done") to the current unreleased version.

I tried to set up a function on the status change, but didn't find a suitable solution. I was also trying to come up with a groovy script using the ScriptRunner plugin. No success as well.

 

Does someone know how to do that?

1 answer

1 accepted

0 votes
Answer accepted
Sven Lüttmann August 27, 2020

Finally found a solution, after creating this issue in the right menu using ScriptRunner: https://community.atlassian.com/t5/Jira-questions/ScriptRunner-set-fixVersion-in-transition-post-fuction-not/qaq-p/1288387

 

Is there any other solution using transition functions without a groovy script?

Aron Gombas _Midori_
Community Champion
August 28, 2020

Using the "Automation for Jira" app (even the Lite, free version should be able to do this), you can create a rule that is triggered by the transitions and which use the "set field" action.

It should be trivial.

Like Raymond de Ribains likes this
Sven Lüttmann August 28, 2020

Hey Aron,

thanks for your quick reply. Do you know, from the top of your head, which function I can use to receive the current unreleased version(s) to be set on fixVersion? Is it possible to use the JIRA API?

Best Sven

Aron Gombas _Midori_
Community Champion
August 28, 2020

I'm not sure.

The Automation app has a concept of "smart values", that's where I'd start searching in addition to the usual "Google is your friend". Best would be to check the "reference" of smart values if there is.

Like Sven Lüttmann likes this

Suggest an answer

Log in or Sign up to answer