Fetch SprintID via JIRA REST API


We are currently planning to automate the creation of our test cases based on the label specified in the User stories.


Project: SampleProject

User Story: SampleUserStory

Label: AutomatedTesting

Sprint: Sprintxx

However for creating the test cycles we need to give the validity from sprint validity e.g. If sprint is valid from 04/01/2017 - 04/15/2017 then Test cycle shall also be valid in that duration.

Is there a JIRA REST API End point which allows us to read meta data of current ACTIVE sprint for a Project and then another end point to read the user stories assigned in the Sprint?


1 answer

1 votes

Hi Rachit - You could probably use 'Get all sprints':

GET /rest/agile/1.0/board/{boardId}/sprint?state=active

Given the ID of the scrum board used for your project, this should give a list of all the sprints. The 'state' parameter can be used to filter for the active one(s).

Then you can use 'Get issues for sprint' to find the issues within:

GET /rest/agile/1.0/board/{boardId}/sprint/{sprintId}/issue 


Super awesome, it's working as I need Sam. Thanks!

Sam Hall Community Champion Apr 23, 2017

No problem Rachit. Happy to help.

Please consider accepting my answer as the solution to your question if it solved your problem (click the tick mark next to the answer).

For more detailed API related questions in future you could also check out the developer community here:  https://community.developer.atlassian.com



Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,945 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot