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

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!

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 Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,025 views 4 9
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