Is it possible to update the label of a Custom Field Value using groovy?

We have some projects that have lasted years, and some catalogs require maintenance. To not loose data, the preference is to add a prefix "DELETED" to those values that are not supposed to be used anymore, so we don't loose the value for old records and the new ones have a way to tell the user the option is no longer valid. We would have preferred to just "disable" the option, but that behavior is not avaialble.

What would be the groovy solution?

Thanks

4 answers

We have Jira 4.1.x, and I have not found a way to disable the options, I can remove them, but aparently all the closed items that use that option I delete, will show empty that field. Is there something I could use to avoid this?

0 vote

What's wrong with disabling the options? That's the best solution.

0 vote

> Is there something I could use to avoid this?

You could upgrade.
If you can't upgrade then you could use script runner to rename them... but I can't remember the API, it changed substantatially for Options around 4.4 iirc.

Well... we are in the process of upgrading but it will end until July.... and the only alternative right now is to run a database script to update the labels, and to re-start Jira so it takes the new values. Hopefully that's enough.

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 Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

32 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