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?


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 votes

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

0 votes

> 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 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,042 views 13 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