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?
Community moderators have prevented the ability to post new answers.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.