Commit 66694c55 authored by cividesk's avatar cividesk

corrects issues-created-history query

parent f4a8e7e9
......@@ -9,12 +9,11 @@ $status = array(
$queries[] = array(
'file' => 'issues-created-history.json',
'query' => "
SELECT DATE_FORMAT(m.month, '%Y-%m') AS `month`,
SELECT LEFT(m.month, 7) AS `month`,
(
SELECT COUNT(*)
FROM jira_issue i
WHERE i.created < m.month
AND (i.resolved IS NULL OR i.resolved > m.month)
WHERE LEFT(i.created, 7) = LEFT(m.month, 7)
) AS num_issues
FROM common_month m
ORDER BY m.month ASC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment