Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×We need to rename up to 100 JIRA Custom Fields in a simple and fast manner. Is there a groovy script or similar process that will allow us to prepare the rename and then run it in a single or small set of instructions.
In Oracle: UPDATE CUSTOMFIELD SET CFNAME = "New Field Name" WHERE ID=12345
OR
UPDATE CUSTOMFIELD SET CFNAME = "New Field Name" WHERE CFNAME = "Old Field Name"
Set up an SQL command file to execute as many of these as required.
Remember your filters:
SELECT ID,FILTERNAME from SEARCHREQUEST where UPPER(REQCONTENT) LIKE '%OLD FIELD NAME%'
This will list any filters that need updating once you have run the Custom Field Rename.
You may also want to check that none of your WORKFLOWS use the field name:
SELECT * FROM JIRAWORKFLOWS WHERE UPPER(DESCRIPTOR) like '%OLD FIELD NAME%'
There may also be some 3rd Party Plugins that use the CFNAME instead of the field ID. Set up searches of the PROPERTYENTRY, PROPERTYSTRING and PROPERTYText tables.
In all the above cases and because this "Answer" is about a Bulk Rename of Custom Fields, you can use the UNION command to string together your Search strings for each table and get your complete list of affected items.
Excellent solution. I will just update the CFNAME in the CUSTOMFIELD table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure if the add-on supports that but you can do it at the database level.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.