Hi ,
I am writing SELECT queries for JIRA DB, i want to fetch results : Number of issues for a customfield "Severity" .Severity has three options as "High","Low","Medium".
I am able to get the values for severity Customfield by using GROUP BY clause.
But i also want the count of isssues where the value of Severity field is None in JIRA.
The below query gives me results for Customfield Severity for a certain Project & Issuetype:
SELECT cfo.customvalue AS "Severity" ,COUNT(jiraissue.id) AS IssueCount
FROM customfieldoption cfo, jiraissue,
customfieldvalue cfv,
customfield cf
WHERE jiraissue.project='10141'AND jiraissue.created>='2012-04-01' AND jiraissue.issuetype='1' AND cfo.customfield = '10781' AND cfo.customfield = cf.id AND jiraissue.id=cfv.issue AND cfo.id=cfv.stringvalue GROUP BY cfo.customvalue ORDER BY cfo.customvalue;

I want to display "None " Option in the above result.
Please let me know how can we do it?
Thanks
Kapil