protected List<BasicIssue> getIssues(String jql, int start, int maxResults, int maxPerQuery) {
LOG.info("Indexing current JIRA issues...");
List<BasicIssue> issues = new ArrayList<BasicIssue>();
while (true) {
SearchRestClient searchRestClient = client.getSearchClient();
SearchResult searchResult = searchRestClient.searchJqlWithFullIssues(jql, maxPerQuery, start, null);
for (BasicIssue issue : searchResult.getIssues()) {
issues.add(issue);
}