Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase maxResults for Search endpoint

jan.ambroz December 14, 2023

Hi there, 

 

we are using the Search endpoint , based on the documentation maxReulsts default is 50 but we are unable to increase this limit. Even if we try to set maxResulsts 100 it still returns just 50 issues. 

 

Is there a way to increase this limit?

 

Thank you

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2023

Hi @jan.ambroz 

I just checked and it pulled back 100 for me by adding this to the end of my search:

&maxResults=100

What were you trying to use?

Kind regards,
Bill

jan.ambroz December 14, 2023

Hi Bill, 

yes, you are right it is 100, we are trying to return 10K+, but looks like JQL has some limit too. So the max limit for the endpoint is 100, and there is no way to return more items per page?

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2023

That is correct: 100 is the upper limit.

Here is the old "defect" on this that 1000 did not work with maxResults, and the Atlassian response described the potential performance, memory, and timeout issues for the decision.

https://jira.atlassian.com/browse/JRACLOUD-67570

jan.ambroz December 14, 2023

I just realized the maxResults is not a problem, the problem is the limit that JQL returns which is just 1000, but we need to return around 10k. Do you know if there is a way to increase this limit? 

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2023

I have not run into that one for a while, and I recall that was also a hard limit for Jira Cloud.  The only work-arounds I recall were to use additional search criteria to get below the limit and then merge result sets (from multiple searches) in another tool.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events