0

I am working on a project to pull out data from rally and create a velocity chart.

I understand the REST Web Service APIs to use are Defects, Iteration, Hierarchical requirement and Iteration cumulative flow data.

How are the calculations are done to calculate the velocity per iteration for a particular project?

What data is required and how can it be achieved? Right now I'm able to pull plan estimate of all accepted user stories and total plan estimate.

Dave Hillier
  • 18,105
  • 9
  • 43
  • 87
Benil Mathew
  • 1,638
  • 11
  • 23

1 Answers1

1

I wrote an app recently to calculate velocity. I used the story points of all accepted stories/defects in a time period (iteration/release). My numbers ended up matching what Rally had for my velocity, so I believe that is all it takes.

amcolosk
  • 220
  • 1
  • 8
  • Hey thanks for the reply. sorry for posting the question 2 times.. can you please specify how u calculated story points accepted till last day of iteration for a particular iteration ? Did you use the API iterationcumilativeflowdata ? – Benil Mathew Aug 08 '13 at 14:40
  • I was stuck at the point calculating cardestimatetotal for each iteration. Im getting it as 0. Well im sure the query filter i gave(ie the iteration object ID ) was for a particular iteration. but im not sure how i got a zero ? And if you dont mind can u pls give a high level idea of the logic u used.. Im tryin to replicate the Vellocity chart in Rally – Benil Mathew Aug 08 '13 at 14:43
  • I used a WsapiDataStore to get the user stories in an iteration. See code example below. I then used the record to get the Plan estimate. 'points = storyRecord.get("PlanEstimate");' Data store example: Ext.create('Rally.data.WsapiDataStore', { model: 'User Story', autoLoad: true, fetch: true, filters: [ { property: 'Iteration', operator: '=', value: iterationRef }, { property: 'ScheduleState', value: 'Accepted' } ] }); – amcolosk Aug 08 '13 at 16:22
  • How did you calculate the story points accepted till the last day of each iteration ? I Guess we need that data also to calculate the velocity. – Benil Mathew Aug 12 '13 at 06:06
  • @amcolosk...any idea how to find a solution to this ques ? http://stackoverflow.com/questions/18185037/find-out-plan-estimate-of-user-stories-moved-to-next-iteration-in-rally – Benil Mathew Aug 12 '13 at 13:06
  • My solution will not give you the granularity you desire. Mine is just a basic accepted velocity. As charles says in your question referenced above, a loopback API will be the best bet for what you are looking for. – amcolosk Aug 13 '13 at 12:47