Problem
Für alle JIRA Projekte soll die Anzahl der Issues pro Issue Type und Issue Status ermittelt werden.
Ansatz – Approach
SQL Database Query
Lösung – Solution
SELECT project.pname 'Project', issuetype.pname 'Issue Type', issuestatus.pname 'Status', COUNT(project_key.PROJECT_KEY+'-'+CAST(issuenum AS VARCHAR(5))) 'Count' FROM jiraissue INNER JOIN project_key ON jiraissue.PROJECT=project_key.PROJECT_ID INNER JOIN project ON CAST(project.ID as nvarchar)=project_key.PROJECT_ID INNER JOIN issuestatus ON issuestatus.ID=jiraissue.issuestatus INNER JOIN issuetype ON issuetype.ID=jiraissue.issuetype GROUP BY project.pname, issuetype.pname, issuestatus.pname