Hi team,
I have a custom field that is not always populated on an issue. I would like to report on cases where the field does not exist for an issue.
I have a query that works out and displays the count of each jira_issue_field value, but can't work out how to add "this is not populated for this issue". Any ideas?
This is my current query:
SELECT jira_issue_field.value AS Value,
COUNT(DISTINCT jira_issue.issue_key) AS `Count of ToD`
FROM jira_issue_field
INNER JOIN jira_issue ON jira_issue_field.issue_id = jira_issue.issue_id
INNER JOIN jira_project ON jira_issue.project_id = jira_project.project_id
WHERE (jira_issue_field.name = 'Taxonomy of Demand')
AND {PROJECT_ID.IN('jira_project.project_id')}
AND jira_issue.status = 'Done'
AND jira_issue.resolution_at >= TIMESTAMP({CALENDAR.START})
AND jira_issue.resolution_at <= (TIMESTAMP({CALENDAR.END}) + INTERVAL 1 DAY)
AND jira_issue.resolution_at IS NOT NULL
GROUP BY jira_issue_field.value
ORDER BY COUNT(DISTINCT jira_issue.issue_key) ASC
LIMIT 1000;
t