Forums

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

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

milan.shah
Contributor
July 3, 2020

3 answers

0 votes
milan.shah
Contributor
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 Champion
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
Product Admin
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events