Forums

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

Get a List of all Sprints for each version

Ajay Kere May 24, 2018

I am implementing Jira Rest APIs and I need to Import a List of all Sprints for each version and a List of all stories points in a Sprint.

Is there any Rest API or jql available for this?

please help to figure this out.

Thanks in advance.

1 answer

1 vote
Danyal Iqbal
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.
May 24, 2018

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.

sprints and fix versions are not directly related. you need a workaroundto get all sprints for a fixversion.

Ajay Kere May 28, 2018

Can I import sprints by using JQL?

Ajay Kere May 28, 2018

If I use this approach, then I will have to call 3 different APIs for just sprints. please let me know How can get it in single call or by using jql

Danyal Iqbal
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.
May 28, 2018

sprints and fix versions are not directly related

 

This is the issue which prevent you from getting all the infos in one call.

For a workaround using jql, you need to create a new custom field which documents this relationship, fill it via a script and query that field in the jql.

Basant Dewangan
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!
October 5, 2020

Run project = <project Name> AND Sprint in openSprints() 

You will get the list of sprint.  

Suggest an answer

Log in or Sign up to answer