My task is to get all the Issues from the Backlog of a Board.
So I have seen a similar Post at:
, but unfortunatelly this doesn't answer my question.
At the Jira Website concerning the REST API:
I found the following Java Code which works:
// This code sample uses the 'Unirest' library: // http://unirest.io/java.html HttpResponse response = Unirest.get("https://your-domain.atlassian.net/rest/agile/1.0/board/{boardId}/backlog") .basicAuth("email@example.com", "") .header("Accept", "application/json") .asJson(); System.out.println(response.getBody());
The Problem is, that it only gives 50 Issues, as the maxResults is automatically set to 50.
How can I alter the "maxResults" parameter to get all the Issues using "Unirest"?
I have already tried using ->> ...
rest/agile/1.0/board/{boardId}/backlog;&maxResults=50000
which doesnt work.
Found partially an answer for Issues till 1000.
I had only to do the following:
HttpResponse response = Unirest.get("https://your-domain.atlassian.net/rest/agile/1.0/board/{boardId}/backlog?startAt=0&maxResults=1000") .basicAuth("email@example.com", "") .header("Accept", "application/json") .asJson();
so just add after backlog this:
?startAt=0&maxResults=1000
with 0 and 1000 being just integer variables.
*Edit*
Note that it will not get more Issues then 1000. So if I'try 10000 it will still set "maxResults" to 1000. So I still did not find an answer for >1000 Issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.