Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a Greenhopper REST API for accessing story points for a sprint?

Faraaz Khan March 1, 2013

Hi.

I am interested in developing an analytics application that supplements our JIRA installation. For this I need access to the Rapid Board data (like No. of Story Points Completed in a Sprint, No. of Hours Logged for all Issues in that Sprint etc).

Currently the API doesn't seem to provide this data, is there a plan to do that or another resource that is already available that I can use for this?

Thanks!

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
EddieW
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.
March 1, 2013

Basing this on OMar's answer here, https://answers.atlassian.com/questions/133844/greenhopper-rest-api-listing-all-issues-in-a-sprint

First you need to get the rapidview ID for the that sprint, do this here are steps:

  1. Run /rest/greenhopper/1.0/rapidview to get list of rapid views with the IDs.
  2. After you get the rapid view ID, you will need to get list of sprints in that rapid view by running/rest/greenhopper/1.0/sprints/{rapidViewId}
  3. After obtaining the Sprint ID, you can run /rest/greenhopper/1.0/rapid/charts/sprintreport?rapidViewId={rapidViewId}&sprintId={sprintID} to get list of issues for that sprint.

ANd once you have all the issues completed you can sum the total story points, hours logged, or any other data you are interested in.

Althoug doesn't the built-in sprint reports provide both of those?

Faraaz Khan March 5, 2013

worked like a charm! thanks Eddie!

Hashan Wanniarachchi September 17, 2013

Thanks Eddie!.I've tried this and worked perfectly fine with a small change. "sprint" is deprecated now as they say. use "sprintquery" instead. i found the answer on these links
https://jira.atlassian.com/browse/GHS-9747
https://jira.atlassian.com/browse/GHS-9321

2 votes
EddieW
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.
March 1, 2013

Faraaz, I edited your title to be more specific then "is there a GH api?" - tried to include the details you were looking for.

TAGS
AUG Leaders

Atlassian Community Events