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?

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

> 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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,704 views 17 21
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