How to use API to query ALL issues in ALL sprints for a certain board

 I am trying to create a report that shows the issues that were brought into every sprint tied a specific board.  The API structure right now only lets me search for 1 sprint to get its issues, but I would like to search for a board and get all of the sprints AND all of the issues within each sprint.

Right now I can bring in all sprints for board using this request:

/rest/agile/1.0/board/447/sprint

And if I want to get all issues for a sprint, I have to search a specific sprint:

/rest/agile/1.0/sprint/{sprintId}/issue  

 

I would have to create a separate request for each sprintid but we have multiple teams each with dozens of sprints, so that option is not preferred.

1 answer

1 accepted

0 vote
Warren Levy Community Champion Sep 21, 2017

Hi Daniel

You need to use code to control these calls (I've used Excel's VBA in the past and now use C#, but any programming language will do). 

So your code would issue the call to get all the sprints, then loop round the results and issue a call for each sprint to get the list of issues.

The API was designed to be used in this way - if you aren't a programmer, I'm sure someone in your company can help you with this. Once the code is working, you can get your answers quickly and easily.

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 Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

124 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