Forums

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

How can I get the changelog history for issues via API calls?

Tushar Rajvanshi March 18, 2024

We need to access the changelog history for all our issues in our project using either REST APIs OR the Jira python library. 

However none of these seem accesible. Can someone please suggest how to achieve this?

3 answers

3 votes
Fabio Racobaldo _Herzum_
Community Champion
March 18, 2024

Hi @Tushar Rajvanshi and welcome,

via rest you can do that trhough the following /rest/api/2/issue/{YOUR_ISSUE_KEY}?expand=changelog

via phyton script you could use ChangeHistoryManager api (https://docs.atlassian.com/software/jira/docs/api/7.6.1/com/atlassian/jira/issue/changehistory/ChangeHistoryManager.html)

Hope this helps,

Fabio

0 votes
Tushar Rajvanshi March 18, 2024

Thanks @Fabio Racobaldo _Herzum_ ,

Do you if there is a way to get this data for Data Center implimentations?

Fabio Racobaldo _Herzum_
Community Champion
March 18, 2024

Hey @Tushar Rajvanshi , please take a look to my answer below

0 votes
YY Brother
Community Champion
March 18, 2024

Hi @Tushar Rajvanshi 

Welcome to the community. As for REST API, please refer to:

Get changelogs. Hope it helps.
Thanks,
YY哥
Tushar Rajvanshi March 18, 2024

Thanks @YY Brother 

However, I am unable to access any endpoints using API 3. Also, when using the API2 I am able to access the issue but not changelog.

 

I tried making a request to the URL

1. https://jira.abc.com/rest/api/3/issue/abc-1234 - Returns 404

2. https://jira.abc.com/rest/api/3/issue/abc-1234/changelog - Returns 404

3. https://jira.abc.com/rest/api/2/issue/abc-1234 -Returns 202

4. https://jira.abc.com/rest/api/2/issue/abc-1234/changelog - 404

Fabio Racobaldo _Herzum_
Community Champion
March 18, 2024

Rest api mentioned by @YY Brother are for cloud. That is the reason of the error code

Like YY Brother likes this

Suggest an answer

Log in or Sign up to answer