Forums

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

How to get changelogs for an entire project using the search api if histories count > 100

Gangadhar Dalli March 23, 2022

We are using search api call, similar to 

/rest/api/3/search?expand=names,schema,changelog,transitions&fields=*all&startAt=0&maxResults=100&changelog.startAt=100&jql=project+%3D+{project_name}+order+by+updated+ASC

We have a few issues with histories having more than 100 changelogs. But we are only getting the hundred latest logs. Is there anyway to get the older hundred changlogs using the search api itself. 

We need to get the changelogs for all issues in a project and hence have ruled out the use of 

/rest/api/3/issue/{key}/changelog?startAt=101&maxResults=100

2 answers

1 accepted

0 votes
Answer accepted
Bill Sheboy
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 23, 2022

Hi @Gangadhar Dalli -- Welcome to the Atlassian Community!

I believe you are correct: since the change was made in 2017 to limit the returns to 100 entries, the only way to get the other entries is using the single issue call with pagination.

You may also search in the developer community area to see if there are work-arounds others have found: https://community.developer.atlassian.com/

Kind regards,
Bill

Gangadhar Dalli June 11, 2022

 

We went ahead with this API itself : /rest/api/3/issue/{key}/changelog?startAt=101&maxResults=100

We got the list of issues with changelogs>100 and looped through the number of issues fetching 100 at a time. Took a bit of a performance hit but that was the best we could do.

Like Dmytro Horodetskyi likes this
0 votes
Yuliia_Borivets__SaaSJet_
Atlassian Partner
June 13, 2022

Hi @Gangadhar Dalli 

As an alternative solution, you can try the Issue History for Jira app developed by my team. There is no limit on the number of issues you can get changelog and export here.

How to export issue history for audit trail.png

Gangadhar Dalli June 13, 2022

@Yuliia_Borivets__SaaSJet_ .. This is interesting. Are there any APIs written that we could use to get this. We need to do this on a daily basis and sort of want to automate the entire process. 

Thanks !

Gangadhar

Yuliia_Borivets__SaaSJet_
Atlassian Partner
June 13, 2022

Issue History add-on itself represents the full issue changelog. You can filter it by project, sprint, assignee, dates, etc., and create the report you need. Export takes a few button clicks. You can get everything without writing APIs here.

There is a 30-days free trial, so you can check if it can fit your case.

If you have more questions, let me know here or contact our support team.

KR

Gangadhar Dalli June 13, 2022

@Yuliia_Borivets__SaaSJet_ 

We use the histories as only one of the datasets. We need to pull in the data in an automated way everyday. I think that a plugin/add-on might not be a solution to us because we need it to fit into our project. 

Thankyou.

Yuliia_Borivets__SaaSJet_
Atlassian Partner
June 13, 2022

I see. Sorry, don't know much about automation. Hope you will find a way to solve your case.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events