Created
December 6, 2011 15:57
-
-
Save martindrapeau/1438680 to your computer and use it in GitHub Desktop.
Planbox Velocity for the Current Iteration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.post('https://www.planbox.com/api/get_iterations', | |
{product_id:1234, timeframe:"current"}, | |
function(object) { | |
var iterations = object.content; | |
var iteration = iterations[0]; | |
console.log('Your velocity for iteration '+iteration.name+' averaged on the past '+iteration.velocity.iteration_ids.length+' iterations:'); | |
var record = iteration.velocity.data[0]; | |
console.log(' Estimate-hours Velocity = '+Math.round(record.estimate_done)); | |
console.log(' Points Velocity = '+Math.round(record.points_done)); | |
console.log(' Business Value Velocity = '+Math.round(record.value_done)); | |
}, | |
'json' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment