For analysis purposes, I wanted to retrieve the custom field usage statistics from JIRA a database. I found out that issue counts resulted by SQL and JQL significantly differ.
For example;
select
count(cfv.issue)
from
customfield cf,
customfieldvalue cfv
where
cf.id = cfv.customfield and
cf.cfname = 'Epic Colour' and
cf.customfieldtypekey = 'com.pyxis.greenhopper.jira:gh-epic-color';
This shows an issue count of ~7000 in my JIRA instance, but following JQL results all issues (300,000+).
"Epic Colour" is not EMPTY
Is this normal? If so, what is the rationale behind this?
Thanks in advance!
--
Shaakunthala