Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I get all the issues while using REST API for a JQL

Kuldeep Sharma
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!
April 22, 2015

My org is using JIRA for tracking issues and features. For some internal purpose we needed a REST call which can get all the issues based on supplied JQL, but right now we can only fetch 50 rows at max. Any idea how can we have all the rows to the JSON object?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Volodymyr Krupach
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.
April 22, 2015

Hi Kuldeep!

/rest/api/2/search returns:

"startAt": 0,
"maxResults": 50,
"total": 1,

and you are expected to build pagination passing "startAt" query param:

/rest/api/2/search?jql=project=DEMO&startAt=51

Also you can increase number of results by adjusting jira.search.views.default.max: https://confluence.atlassian.com/display/JIRA/Limiting+the+number+of+issues+returned+from+a+search+view+such+as+an+RSS+feed It's 1000 in resent JIRAs so I guess you run some older version.

TAGS
AUG Leaders

Atlassian Community Events