Forums

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

(API) Access complete change log for multiple issues using one request?

myName isBen
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!
October 17, 2019

Hi all

I have some JQL that returns a list of tickets that I want part of the change logs for - more specifically the only thing I want returned from the logs are instances of the status field being changed.

My URL is https://jiraURL/rest/api/2/search?jql=xxx&fields=yyy&expand=changelog. This works but I'm only getting part of the change log for each of the tickets.
If I use the response from the above URL I can get the information I want by making a request for each ticket at which point the complete change log is returned but I'd much rather get all the information using one request.

Does anyone know if this is possible? I've looked at the documentation but I'm fairly new to the API so might have missed something.

Thanks,
Ben.

1 answer

0 votes
Warren
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.
October 18, 2019

Hi @myName isBen 

No you're not missing anything. The API call you show will only return the first 20 changelogs; if you require more you need to use a call specific to that issue.

I have code which checks the number of changelogs and then only use a separate call if > 20. It's not ideal but that's the way it is

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events