Forums

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

How to Increase REST API Index search limit

Manu Sukumaran Panicker December 6, 2018

Hello,

 

I'm trying to get records through REST API  from parameter "startAt=999&maxResults=1500" like this.

But when I change to "startAt=0&maxResults=1000", I'm getting only 1000 records, it not searching beyond 1000 when increase maxResult value. Because in our JIRA we have more than 1000 users exist, so we want all the users record.

Does any one know that what is the maximum indexing search limit through above mention parameters or its a JIRA indexing limit.

 

Thanks.

Manu.

 

1 answer

1 vote
Aakash T December 6, 2018

Hi Manu,

You can fetch maximum 1000 records from JIRA at a time in most of the APIs and not more than that. Consider this API, which returns 50 by default but maximum 1000, so, even if you supply value > 1000 you will get 1000 only.

You have to call service multiple times to fetch all the data,

For example, if you have 2560 users,

  • startAt=0&maxResults=1000
  • startAt=1000&maxResults=1000
  • startAt=2000&maxResults=1000 (This will return only 560 users)

Basically, if you get result less than 1000 you must be on last page or you don't need to call this API again. There are some other REST services are also there which returns total count in first page which can be used to decide number of calls to be performed to get all items.

Hope this helps.

Thanks.

Manu Sukumaran Panicker December 6, 2018

Thanks Aakash for the information, we got your point, but our way of looking to get the records through a single time, looks like it's not possible, so any way let me see what other method is feasible for us.

Thanks once again!

 

- Manu.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events