Fetch SprintID via JIRA REST API

Deleted user April 11, 2017

Hi,

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

e.g.

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?

Thanks,
Rachit

1 answer

4 votes
Sam Hall
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.
April 11, 2017

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 

 

Deleted user April 22, 2017

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

Sam Hall
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.
April 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

 

 

Like darthwalsh likes this
Maurice Straube March 11, 2020

Hi @Sam Hall ,
in your answer, you refer to the community forum for answers.

I encounter the same problem as encountered above. 
I have downloaded the POSTMAN collection for the current Rest API version of JIRA from the official documentation page of Atlassian .

In there, there is no resource endpoint for boards described as you stated above.
Why does this difference exist? Where can I find documentation on board related endpoints?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events