Forums

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

Pagination issue after migrating to new JQL Search endpoint

Pattem Jagadesh
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!
August 19, 2025

Hi,

We're trying to migrate to the new JQL Search endpoint(rest/api/3/search). Using pagination, first few hits are successful but later the API is failing with error, even when we are using the nextPageToken provided in the previous API hit.

{
    "errorMessages": [
        "The provided next page token is invalid or expired."
    ],
    "errors": {}
}

1 answer

1 accepted

0 votes
Answer accepted
Pattem Jagadesh
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!
August 19, 2025

This happens when you try to fetch the issues created until the current_moment. As you're trying to fetch the data in near real time, new issues can be created at the same moment and the next page index may change in between API calls, thus giving the above error.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events