The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Rest API maxResults Problem

Mert Can Polat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 25, 2024

Hello,

 

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options/#api-rest-api-3-field-fieldid-context-contextid-option-get

I m using this api endpoint for getting custom field option list. End point taking maxResults parameter for result count. This parameter default setting 100. I set maxResults to 1000 but api giving max 100 result. API not giving result higher then 100. How can solve this problem?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Aswin Raj D
Community Champion
January 25, 2024

Dear @Mert Can Polat ,

 

The issue you are facing with the Atlassian JIRA REST API, specifically when trying to retrieve more than 100 results for custom field option list, is a common limitation set by many APIs to ensure performance and stability. In this case, even though you are setting maxResults to 1000, the API itself has a hard limit of 100 results per request.

To solve this problem, you will need to implement pagination in your API requests. Pagination involves making multiple requests to the API, each time retrieving a subset of the total results, until you have retrieved all the data you need. The JIRA API provides parameters such as startAt for this purpose.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events