Forums

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

How can I produce a view of custom field usage by project?

Matthew Martin
Contributor
July 25, 2022

Hi there,

I am currently working with a DC instance of JIRA with approximately 1600 custom fields. My initial goal is to reduce that to 800. For additional context, our environment is moving towards standardised, shared templates, so the remaining number of older, custom projects is actively diminishing.

I've already walked through 2 phases of reductions targeting low-hanging fruit:

  1. CF's with no ticket usage (excluding addon provided)
  2. CF's with no updates within the last two years (excluding addon provided)

This has yielded me a scope of approximately 450 fields; however, that's not even close to my desired outcome.

My next target is in-use custom fields used by low numbers of projects. We don't intend to support hyper-specific use cases for custom fields in our future.

I have no idea how to produce this view. 

What I'm thinking would be great would be a sorted list looking like the following:

  1. Customfield A: 300 projects
  2. Customfield D: 150 projects
  3. Customfield C: 3 projects

Thanks, and looking forward to hearing back.

2 answers

1 vote
Dave Mathijs
Community Champion
July 25, 2022

Hi @Matthew Martin ,

A third-party app like Power Admin for Jira can help you with the analysis and cleanup of your custom fields.

0 votes
Florian Bonniec
Community Champion
July 26, 2022

Hi @Matthew Martin 

 

I would have used a database query to do that. Doing so you are sure to not miss anything due to permissions issue.

 

Regards

Matthew Martin
Contributor
July 26, 2022

Yeah. Maybe I'll just need to bite the bullet and commit to doing that. 

Florian Bonniec
Community Champion
July 26, 2022

You can find the db structure below

https://developer.atlassian.com/server/jira/platform/attachments/jira_8.20_database_schema.pdf

 

You have to look into customfieldvalue table, join with jiraissue table then project table.

Make sure to check STRINGVALUE, NUMBERVALUE, TEXTVALUE and DATEVALUE column in customfieldvalue because if there is any value for a CF it's not stored in the same column depending on the field type in JIRA.

 

Regards

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.10
TAGS
AUG Leaders

Atlassian Community Events