How can I list all sprints from greenhopper using the REST api???


I need to use the REST api to query greenhopper to get a list of all sprints. I would much appreciate it if someone please post or point me to an example.

7 answers

curl -u <username>:<password> -X GET -H "Content-Type: application/json" 'https://<site>/rest/greenhopper/1.0/sprintquery/<rapidBoardId>?includeFutureSprints=true&includeHistoricSprints=false'

did the job for me.

As Shaun said, you need to find out the 'rapidBoardId' with a GET request to https://<url>/rest/greenhopper/1.0/rapidviews/list:

curl -u &lt;username&gt;:&lt;password&gt; -X GET -H "Content-Type: application/json" 'https://&lt;site&gt;/rest/greenhopper/1.0/rapidviews/list'

See also the convenient browser:

There is no REST endpoint to do this, you can only query the sprints that are visibile for a particular Rapid Board.

The endpoint for that is: https://<url>/rest/greenhopper/1.0/sprints/{rapidBoardId}

You can enumerate the Rapid Boards at another REST endpoint: https://<url>/rest/greenhopper/1.0/rapidviews/list


I would like to pick up that topic. The mentioned endpoint https://<url>/rest/greenhopper/1.0/sprints/{rapidBoardId} unfortunately does not include sprints that are not yet started, only the completed and running ones. Is there another way to get also the sprints that are only planned?


0 vote

Planned sprints will be able to be queried in the same way in a release coming very soon.

This are very good news. Can you explain this a little bit further? Will the planned sprints be listed in the regular sprint list queried by


or will there be another rest url to get them?

It seems this was forgotten? :(

0 vote

I don't have further details at this point.

Thanks anyways.

You can create an export from table AO_60DB71_SPRINT where ID is the Sprint ID, RAPID_VIEW_ID the Scrum Board ID and NAME the Sprint Name

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

383 views 4 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you