Issues returned by JAVA API Limited to 100 against on-cloud JIRA


We have a JAVA application (written in Eclipse) which uses the API to execute a saved filter. This filter will return 500+ records successfully, however our company migrated from on-premise JIRA to JIRA On-Cloud and ever since going to on-cloud: our Filter call only returns 100 issues or less (depending on query). Running the code against our read-only instance on-premise will return the 500+ issues we expect.

We have played around with changing maxResults, maxResultsperRequest (not sure if these are API variables or created in-house - sorry I am not the coder).

No where's in the code have we set a variable to 100. (again we did not change the code after migrating)

Could pagination be the problem?

  • maxResults is the maximum number of items that can be returned per page. Each API endpoint may have a different limit for the number of items returned, and these limits may change without notice.

* Uses a pre-defined filter to search through issues.
* @param filterID
* @param maxResults Set to -1 for maximum.
* @return A list of issues.
* @throws IOException
public List<Issue> searchFilter(String filterID, int maxResults) throws IOException {
JsonObject filter = get("rest/api/2/filter/" + filterID);
//Main.getLogger().info("Searching with JIRA filter \"" + filter.get("name").getAsString() + "\".");

String jql = filter.get("jql").getAsString();
maxResults = 1000;
// Alternatively, can use a get request with this url (but there's limited space in a url for the query)
//String url = filter.get("searchUrl").getAsString();

return search(jql, maxResults);







1 answer

0 votes
Warren Levy Community Champion Jan 17, 2018

Hi Chris

This changed September last year - see I actually thought that it was Server as well as cloud, but you'll need to use the startAt parameter and multiple calls to get more than 100 results. There have also been numerous complaints about this, see this as an example of some

Ouch!, thanks Warren for the update.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,811 views 18 22
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you