Forums

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

JQL returns only 100 issues always

jay
Contributor
August 9, 2024

 

 

I am trying to fetch all the issues  using JIRA cloud REST API using JQL Query. I have set the field "maxResults" to 500. There are more than 500 issues in the jira. But it is always fetching max 100 issues.

docuemntation url: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-post

rest api : /rest/api/3/search

maxResults: 500

 startAt:0..

But I am getting 100 results only always

1 answer

3 votes
Ramin Shanehsaz _Computerra_
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.
August 9, 2024

Hi,

You can increase the maximum results beyond the default by adjusting the "maxResults" parameter, but it can't be set to an excessively high number. The maximum value appears to be 100, so you'll need to utilize pagination here.

 

jay
Contributor
August 9, 2024

Thank you. But is there any way can I get the all the  issues(more than 500) in single api execution?

Ramin Shanehsaz _Computerra_
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.
August 9, 2024

Unfortunately, the only options are either to make multiple calls to the REST API or to create a script that iterates through all the chunks and merges them into a single result.

Pagination is necessary for improving performance and reducing load on servers by delivering the data in manageable smaller chunks.

jay
Contributor
August 9, 2024

Okay Thanks. 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events