custom field context

Is there a way to bulk change the Context (Issue Type & Project) of the custom field in JIRA 5.2.x



2 answers

0 vote

I'm afraid not, you have to work through each field individually.

Although this can not be done in bulk, there is a way to do this directly in MYSQL, which is far quicker than using JIRA.

Back-up the MySQL database 

Find Table "configurationcontext"

identify the custom fields to update (e.g. customfield_13102)

enter the project id value (e.g. 10900) into the field PROJECT.

Once all custom fields are updated with the project ID's you will need to restart the JIRA instance

ARGH! NO! You're missing half the process, and this could completely wreck the Jira instance. Backups good, yes. But... NEVER NEVER NEVER write to a Jira database while it is running. You MUST shut down Jira before you take the backup If you add any contexts, you will also need to update the sequence tables. After restarting Jira, you MUST perform a full re-index as well.

Oh, and SQL is always a last resort. The general advice for using SQL on Atlassian products is "don't". Rescuing systems that have been damaged by someone running SQL, even really simple stuff, has got me several jobs in the past. It's a nightmare fixing them. Don't. Just don't.

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,183 views 13 19
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