Hi, I'm using the REST API for searching in the JIRA project. When I use the iterator to get the results, I see only the first 50. But I need all. How I do this?
Here my sourcecode:
SearchResult sr = restClient.getSearchClient().searchJql("text ~ \"search string\"", pm); for(Iterator iterator = sr.getIssues().iterator(); iterator.hasNext(); ) { i = (BasicIssue)iterator.next(); System.out.println(i.getKey()); }
Thanks
Community moderators have prevented the ability to post new answers.
Use the maxResults parameter (https://docs.atlassian.com/jira/REST/latest/#idp988640).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.