Skip to content

Instantly share code, notes, and snippets.

@martindrapeau
Created December 6, 2011 15:57
Show Gist options
  • Save martindrapeau/1438680 to your computer and use it in GitHub Desktop.
Save martindrapeau/1438680 to your computer and use it in GitHub Desktop.
Planbox Velocity for the Current Iteration
$.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