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).
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.
Here's some more SQL I run to check for use of customfields
INNER JOIN portletconfiguration ON portletconfiguration.id = gadgetuserpreference.portletconfiguration
INNER JOIN portalpage ON portalpage.id = portletconfiguration.portalpage
userprefvalue LIKE '%12340'
select * from searchrequest s where s.reqcontent like '%MyCFName%' or s.reqcontent like '%cf%'
SELECT cf.id, fsli.fieldidentifier, cf.cfname, fs.name, fst.name FROM fieldscreenlayoutitem fsli
INNER JOIN fieldscreentab fst
ON fsli.fieldscreentab = fst.id
INNER JOIN fieldscreen fs
ON fst.fieldscreen = fs.id
INNER JOIN customfield cf
ON fsli.fieldidentifier = 'customfield_' || cf.id::text
WHERE fsli.fieldidentifier LIKE '%customfield_10009%'
select * from jiraworkflows wf where wf.descriptor like '%customfield_12940%';
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...
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!
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