I have an Analytics report which shows Major Production bugs by Quarter. Chart looked nice, but we got the number of bugs down to 0 the last couple of quarters and so those come back as empty rows for my query - I'd like them to show as a 0 column in my chart, not get skipped. Any way to do this?
SELECT CONCAT(DATE_FORMAT(`Issue`.`created_at`, 'y'), '-Q', QUARTER(`Issue`.`created_at`)) AS `CY Quarter`,
COUNT(DISTINCT `Issue`.`issue_id`) AS `Count of unique Issue Issue ID`
FROM `jira_issue` AS `Issue`
<snip>
WHERE `Issue`.`issue_type` IN ('Bug')
AND `Issue`.`created_at` >= TIMESTAMP({CALENDAR.START})
AND `Issue`.`created_at` < (TIMESTAMP({CALENDAR.END}) + INTERVAL 1 DAY)
GROUP BY CONCAT(DATE_FORMAT(`Issue`.`created_at`, 'y'), '-Q', QUARTER(`Issue`.`created_at`))
LIMIT 100000;