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

Cumulative Flow Diagram example

Share

Related posts:

  1. Greenhoppers latest release 5.2

4 Responses to “Create a Cumulative Flow Diagram using Greenhopper”

  1. Greehoppers latest release 5.2 | the Keggies  on August 24th, 2010

    [...] couple of months back I wrote a post on creating a cumulative flow diagram (CFD) using Greenhopper. Unfortunately the article didn’t provide readers with a solution to the problem, as I was [...]

  2. MrMagoo  on September 10th, 2010

    You’ve created just the diagram I’m looking for! Have you found a fix for the negative accumulation?

  3. Andrew  on September 10th, 2010

    Haven’t spent anymore time on this solution since hearing of JIRA’s latest release of Greenhopper 5.2 which incorporates cumulative flow diagrams – some details on it here

  4. MrMagoo  on September 10th, 2010

    But yours is prettier!

    Thanks, I’ll give greenhopper a try.


Leave a Reply