Max 100 records when we do API calls against the Cloud jira project. Previously it was 1000

milan_shah July 3, 2020

3 answers

0 votes
milan_shah July 3, 2020

the default value for cloud services is still 1000 (according to documentation)...so I am wondering why my stuff is now failing.

I will look into the above two suggestions.

0 votes
Warren
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.
July 3, 2020

Hi @milan_shah 

This changed about 2 years ago.

You will need to pass in the parameter startAt, which you can see in the returned json after any API call. By default it will be 0.

So after your first API call, you do the same call again but pass in startAt=50, then the next call will be startAt=100 etc. You would need to do this until the startAt value is greater than the value total returned in the json.

Hope this helps and is clear.

0 votes
Phill Fox
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 3, 2020

Hi @milan_shah 

The first thing I would try in the pagination options. (https://developer.atlassian.com/cloud/jira/software/rest/)

In particular you need to consider these two options

  • maxResults
  • startAt

So to retrieve the issues from 101 to 300 your request would look similar to this

http://host:port/context/rest/api-name/api-version/resource-name?startAt=101&maxResults=200

You can of course try just increasing the maxResults on its own but I would be wary of doing this as it can lead to performance issues for your instance.

 

Phill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events