I would like to list custom fields in "CustomFieldValue or customfieldoption" fields where no new "value" has been entered in the last year. I want to list customfileds that are not used in Jira with sql.
Hi @Sema YILDIRIM You can refer the below document from Atlassian to find the custom field usage in Jira.
Let me know in case of any issues.
Thank you , The result I got with changegroup is not correct, since the filled custom field information does not appear in history while creating the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Sema YILDIRIM ,
I found this article from Atlassian documentation.https://confluence.atlassian.com/enterprise/managing-custom-fields-in-jira-effectively-945523781.html
Please have a look.
I don't have access to run these. Please let us know after your query.
Thanks,
Anvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you :) But It brings wrong custom field information I created with "ScriptRunner"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sema YILDIRIM You can try the below SQL and AFAIK if the custom fields are coming from any external plugin results will not be reliable but still give it try
select c.id Field_ID, c.cfname Field_Name, date_format(l.last_used, '%m/%d/%y') last_used, u.Records current_usage from customfield c LEFT JOIN (select h.field, cg.CREATED last_used FROM changegroup cg, (select field, max(groupid) max from changeitem group by field) h where cg.id = max) l ON c.cfname = l.field LEFT JOIN (select c.cfname, count(v.id) as Records from customfield c LEFT JOIN customfieldvalue v ON c.id = v.customfield group by c.cfname) u ON c.cfname = u.cfname ORDER BY u.Records ASC;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The result I got with changegroup is not correct, since the filled custom field information does not appear in history while creating the issue.
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.