Hello, I am trying to get all issues from a project using Jira Rest Java Client using the following code:
Iterable<Issue> issues = client.getSearchClient().searchJql("project = MYPURRJECT AND status in (Closed, Completed, Resolved) ORDER BY ssignee,resolutiondate").claim().getIssues();
However it only return a list of 50 issues (I have over 8000 in the project). I guess that it returns 50 because this is the size of a page in jira. Do you have any idea how can I specify that I want all of them?
The code that I am using is inspired by this link: https://pastebin.com/WUMZ0vZa
->
Promise<SearchResult> searchJql(@Nullable String jql, @Nullable Integer maxResults, @Nullable Integer startAt, @Nullable Set<String> fields);
Currently you only have the jql defined in the call, use the startAt and maxResults to get required data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.