Is there a way via API or SQL DB query that we can identify the list values of a select list customfield that have not been used in any JIRA issues?
Hi Jeremy Uprigth,
For checkboxes and dropdowns fields, the tool itself tell you how many issues there are with specific value if you try to remove it from the available options (Jira administrator global permission is needed to perform this action).
See the image below:
Does it solve your problem?
Regards
Thanks @Jack Nolddor _Sweet Bananas_ for the reply! I was aware of this; however, I have a select list field that contains >1000 options, so clicking through each one would be time consuming. I was hoping for a more programmatic way of doing this either via API or SQL query possibly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same thing, so I use this with MSSQL:
select *
from jiraschema.customfieldoption c
where CUSTOMFIELD = '10000' -- Field ID
and not exists
(select 1 from jiraschema.customfieldvalue c2
where CUSTOMFIELD = '10000' -- Field ID
and c2.STRINGVALUE = c.ID)
order by ID
Although the field has ~ 5,000 options and my instance is largish, this method returns quickly. Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.