Retrieving list of issues from a sprint using JIRA Agile REST API

jonathancodacity July 18, 2015

I'm trying desperately to get a list of issues per sprint using the JIRA Agile REST API according to the documentation here: https://docs.atlassian.com/greenhopper/REST/latest/.

Using Postman in Chrome, I'm able to access most information correctly, such as which boards I have, which sprints exist per board, except when I try to access the actual issues in the backlog or per sprint, I keep getting 404 errors.

Here's the endpoint I'm using with Basic Auth:

https://[mysubdomain].atlassian.net/rest/agile/latest/board/1/sprint/3/issue.json

Here's the response:

{
  "message": "null for uri: https://[mysubdomain].atlassian.net/rest/agile/latest/board/1/sprint/3/issue",
  "status-code": 404
}

I know the docs say all those endpoints are experimental, but I want to make sure first that I'm not doing something obviously wrong before assuming it's due to its experimental status.

Thanks for any help or guidance!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2015

According to this Answer, this should show you the issues for the Sprint as you have its ID:

/rest/greenhopper/1.0/rapid/charts/sprintreport?rapidViewId={rapidViewId}&sprintId={sprintID}

 

You should be able to also do this by simply searching using JQL using the Sprint ID. For example, you can search in the issue navigator:

Sprint = 10

So you could simply use the search endpoint (https://docs.atlassian.com/jira/REST/6.4.6/#api/2/search-search):

http://my-jira-server:8080/jira/rest/api/2/search?jql=Sprint=10

This should return all issues that belong to that sprint. smile

Cheers,
Matheus

jonathancodacity July 18, 2015

Thank you, Matheus! That was the simplest answer I've gotten thus far out of everything I've read. However, I can't wait until those other endpoints will be working, since they make much more sense for this use case.

Like Jono Frazer likes this
TAGS
AUG Leaders

Atlassian Community Events