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

Hello,

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);
}

 

thanks

 

Chris
/**

 

 

1 answer

0 vote
Warren Levy Community Champion Jan 17, 2018

Hi Chris

This changed September last year - see https://jira.atlassian.com/browse/JRACLOUD-67570. 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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 4 hours ago in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

16 views 0 3
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