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

Paginating search results using the JIRA REST API

Simon Buckle August 9, 2011

I am using the JIRA REST API and am trying to paginate some search results.

For example, my query (HTTP GET) looks something like this: /rest/api/latest/search?jql=assignee%3dadmin&startAt=5

I know that there are 10 issues assigned to the admin user but I am expecting to only get 5 back from the above query; however, the search result contains all 10 issues and the value of 'startAt' is 0. I am using JIRA 4.4. Any ideas why it doesn't seem to be doing what it is supposed to do? I had a look at the REST API docs and the query string I am sending seems to be correct.

Thanks

2 answers

0 votes
Jagdish Payghan
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!
November 2, 2014

Hi John,

I have a similar kind of issue. In my case, I have results more than 1000 in number and I want to access the results greater than 1000 in chunks by modifying the value of "StartAt" parameter. Though I keep changing its value, it retains its default value 0 while hitting a GET request.

On modifying the URL as stated by you in the last post, it throws the error "You have found a dead link".

Thanks in advance!!

 

0 votes
John Chin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 1, 2013

Hi sbuckle,

Can you try to put the following result and see able to retrieve 5 issue?

/api/2.0.alpha1/search?jql=assignee%3dadmin&startAt=5

Thanks, John

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events