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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 14 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

38 views 0 5
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