Forums

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

How to get all issues using restful api? MaxResults doesn't work for me.

mUnit Developer
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!
October 10, 2018

My project has more than 100 issues but when i get all issues using jql it returns me only 100 issues in one request. How can i get all? maxResults doesn't work for me.

2 answers

2 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.
October 10, 2018

The highest number that you can use for maxResults is 100 - this was a change that came in last year, because it used to be 1000. So, as @Alexey Matveev has said, you need to loop round all the results.

The first call will have startAt=0 and maxResults=100

The next call will have startAt=100 and maxResults=100 etc.

1 vote
Alexey Matveev
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.
October 10, 2018

Hello,

Do you use Rest Api to get issues? If so, you should use startAt and maxResults.

Suggest an answer

Log in or Sign up to answer