Fetch SprintID via JIRA REST API

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

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 16 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

42 views 1 0
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