How to query (SQL) all custom fields not being used in any screen

I have several custom fields (around 250) and some of them are not being used anymore (but may have some value or not).

JIRA customfield interface is not very good to find inactive custom fields (like it work to find inactive workflows).

 

I would like to query database to list all customfields (id or name) that are not applied in any screens.

After that I will check if the field has some value (JQL) and if it is OK to be deleted (maybe the value was migrated to a new field).

 

 

 

1 answer

I'm not sure for the SQL, but in the JQL, I have used the query below to cleanup my 500+ custom fields before

"Custom Field" is not NULL

The results of this query will be all the issues that have this custom field. If it returned 0 results, then you may 86 that custom field without any worries.

You have to be careful with that, even though the fields maybe empty if you have a workflow that sets the value, then you can break the workflow when it tries to set the customfield you just deleted. I found this out the hard way sad

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 ...

2,965 views 12 18
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