Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate Velocity, Backlog Health and Work Predictability using Jira REST API?

Vivek T S
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 27, 2021
I need to calculate sprint velocity, scope change, backlog health and work predictability programmatically using the APIs provided by Jira. When checked the Jira Rest API documentation here , it provides endpoints for sprint, issues, boards etc. but doesn't have anything with respect to the velocity, scope change etc. requirements I mentioned earlier.

When searched on the community forum, I could see that using greenhopper API is an option. But I couldn't see any documentation on it and only a list of Jira tickets raised for the same. I also saw many suggestions by the Atlassian members not to use the greenhopper api as it is deprecated.

For example, this greenhopper endpoint
https://<myOrg>.atlassian.net/rest/greenhopper/1.0/rapid/charts/velocity?rapidViewId={boardId} provides the necessary velocity stat entries for my requirement. But I couldn't find any documentation about the greenhopper api anywhere. On the contrary, the same features are not available as a part of the official Jira Rest API (documentation).

So, please help me in finding out the right way to fulfill the requirement.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 11, 2021

To do this calculation, your code will need to fetch the issues in the sprint and read the data from them to work it all out.

The Greenhopper api you've found is a deprecated old version of the REST API from before Atlassian renamed it Agile and then Software.

Suggest an answer

Log in or Sign up to answer