Bulk rename of JIRA Custom Fields

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.

3 answers

0 vote
Timothy Chin Community Champion May 20, 2013

Not sure if the add-on supports that but you can do it at the database level.

Excellent solution. I will just update the CFNAME in the CUSTOMFIELD table.

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.

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,268 views 14 20
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