The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to get list of all unused custom fields data in Jira

manikanta ch
August 21, 2020

Best way to get a list of all unused custom fields data in Jira

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Ste Wright
Community Champion
August 21, 2020

Hi @manikanta ch 

There's a really great Knowledge Base article on managing custom fields - see this page here.

Let us know if this helps or if you'd like any further suggestions :)

Ste

manikanta ch
August 30, 2020

Hi @Ste Wright ,

I have deleted all unused screens and inactive workflows and i ran the below SQL query as mentioned in the article to rertive all unused custom fields but SQL query is not getting correct data. The fields list the Query listed is attached to screens and workflows. We want rertive the unused custom fields data which are not attached to any screens, workflows or used in any tickets.

select count(*), customfield.id, customfield.cfname, customfield.description
from customfield left join customfieldvalue on customfield.id = customfieldvalue.customfield
where customfieldvalue.stringvalue is null 
and customfieldvalue.numbervalue is null 
and customfieldvalue.textvalue is null
and customfieldvalue.datevalue is null
group by customfield.id, customfield.cfname, customfield.description;

Could you please let me know if there is any other query to get unused custom fields data?.

Thanks,

Mani 

Ste Wright
Community Champion
September 6, 2020

Hi @manikanta ch 

Not sure on the query - but an alternative could be to use an app to clean-up your instance?

For example, apps such as Power Admin or Optimizer for Jira could be helpful here!

Ste