I want to make Fix Version/s uneditable until you reach the implemented stage

Hi all,

We are using Fix Version/s for the version in which the issue was resolved.   I created another field called Targeted Fix version for the targeted versions.  This was done for statistic tracking purposes to get a clear separation of the targeted verse actual fix version.  

However, since we just implemented this new policy people are still using fix version/s for both.  Can I make fix version uneditable until you get to the implemented status?

The only way I could think of is to remove it from the edit screen.  Add it to the transition screen to implemented, then for each state after that add a transition to itself called "Change Fix Version/s".  Having a transition just to change a field is messy to me, and I was hoping for a better way.

Thanks in advance!

Robert

1 answer

1 accepted

Script Runner (Behaviours) is your best friend

I have script runner and can script I am just not sure how to allow or disallow a field to be set.

Go to JIRA Administration - Add-ons and find Behaviours on the left.

Add Behavior (give it a name) - and click Field link

On the bottom choose your field from select list  and click Add

Once you've added Fix Version/s you should see its configuration, press Readonly

Enable Validator Plugin (on that page) and choose the Guide workflow

Add Condition for that field and choose Workflow step (or you can use groovy script here by clicking Add serverside script)

Once you completed, return to Behaviours and add mapping.

 

 

Wow!  I have not even seen Behaviors before (we were on the old free version, but are upgrading to 7.2 so I just upgraded it)!   Feel the power smile   Thank you, this is awesome!!! 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

63 views 0 4
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