I'm seeing issues with Jira REST API when trying to get changelogs for multiple issues. I'm using REST API v3 with changelog endpoint (/rest/api/3/issue/" & issueKey & "/changelog").
I've implemented pagination code using nextPageToken It seems to work for some issues but not all. For some issues I see over 1,000 transitions, which tells me pagination is in fact working. But for others it seems I'm not getting all the transitions as I can look at the issue through the UI and see that there were changes made after the last transition I get back from the API (e.g. the current status of the issue is closed but I see no transition for that in the changelog I get back from the API.).
Is this a known issue? Hopefully someone can help with this because I've been pulling my hair out over this for several hours and can't find a reason for or solution to this problem.