Create a Cumulative Flow Diagram using Greenhopper
Note: I have since discovered that actually this does not produce a perfect cumulative flow diagram as the script doesn’t incorporate negative accumulation. Working on a php script which factors both positive and negative to give an accurate flow.
Ok so after much hunting around I have finally found a solution to creating a cumulative flow diagram using Greenhopper – albeit a workaround!
1) Download Toad for MySQL: http://www.quest.com/toad-for-mysql/
2) Connect to your JIRA Database
3) Use the following query to pull out accumulative totals – tweak parameters based on the project you are working on:
SELECT DATE_FORMAT(changegroup.CREATED, ‘%Y/%m/%d’) AS CountDate, changeitem.NEWSTRING, Count(changeitem.NEWSTRING) As Total
FROM changeitem
left outer JOIN changegroup
ON changeitem.groupid = changegroup.ID
left outer JOIN jiraissue
ON changegroup.issueid = jiraissue.ID
left outer JOIN projectversion
ON jiraissue.PROJECT = projectversion.PROJECT
WHERE jiraissue.PROJECT = ** Your Project ID**
AND changeitem.FIELD = ‘status’
AND projectversion.vname = ‘Release 1′
GROUP BY CountDate, changeitem.NEWSTRING
ORDER BY CountDate ASC
4) Export your result set into Excel and create a pivot table
5) Change the graph to type Area
6) Summaries your results by running total
See Example here




Recent Comments