Help with Pagination for Jira On-Prem Changelog API

Sanjay Shukla
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!
March 3, 2025

Hi,

I need to fetch the changelog for a specific issue from a Jira On-Prem server. Currently, I’m using the following endpoints:

  1. rest/api/latest/issue/ABC-123/?expand=changelog
  2. rest/api/latest/issue/ABC-123/changelog

However, I’m facing two issues:

  1. The first endpoint returns the full changelog. I know the issue ABC-123 has 113 logs, but if the number increases significantly, the API might not return all data. I wanted to apply pagination on expand=changelog, but it doesn’t seem to work. Can anyone guide me on how to paginate this API?
  2. The second endpoint returns a 404 error. I suspect this is due to an older Jira version running on the server, but I don’t have access of server to check the exact version.

Any help would be appreciated!

Thanks!

1 answer

0 votes
David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 2025

You can lookup the Jira version with the serverinfo endpoint, then you'll know what version of the REST API documentation you should be reading to learn if the changelog response object for the Get Issue endpoint is subject to pagination.

Also, if you Google 'Jira data center rest api issue changelog' the very first result is the thread that contains the answer as to why you are getting a 404 error when trying to access this endpoint on Jira Data Center:

rest/api/latest/issue/ABC-123/changelog

Have fun on your learning journey!

Suggest an answer

Log in or Sign up to answer