Hi guys, I'm trying to get all the results that appear in my search but I'm not able to use the pagination, would anyone know how I can use the pagination to read all my issues?
Hello @Alexandre Junior
Thank you for reaching out.
I understand per your description that you have more than 1000 issues returned by a JQL query and would like to use pagination in your REST call to return all of your issues. Is that correct?
You can use the pagination parameter "startAt" to specify the starting issue returned in the JQL results, so you will be able to run multiple calls returning 1000 issues sequentially.
Let me give you an example:
Let's suppose you would like to return in your REST API all the issues assigned to Charlie by order of creation, however, Charlie has 2500 issues. You will be able to return all the issues by running the three following calls:
P.S: The max number of issues returned can change sporadically, so check in your REST API call if that number is still 1000 by default. Additionally, you can use the "maxResults" parameter to define the number of issues returned if you want a different value (< 1000).
You can check the documentation below for more details about the pagination examples and parameters provided:
Expansion, Pagination, and Ordering
Jira Rest API Examples - Although this article is related to Jira Server, the same logic might work if you change the call from "http://localhost:8080" to "yourdomain.atlassian.net".
Let us know if this information helps.
It looks like you're new here. Sign in or register to get started.