Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get complete changelog for a issue

Tarun October 13, 2015

Hi Everyone

I am using JIRA version 6.4.12 and i have following questions:

I'm using the REST API to collect issue information. I want to get the complete changelog for an issue by using http:server/jira/rest/api/2/issue/{number}?expand=changelog

The issue json object then contains the changelog. The changlog has total, startAt and maxResults values for the history. How can I iterate through the history items if total > maxResults? Adding startAt as query parameter is not working.

 

Second question is:

is it possible to retrieve change log history for last month or since a particular date. For .e.g is it possible to get change log history of an issue since "2015-05-12 23:59:59"

More information for second question:

Jira specify date time in change log using keyword "created". If in jql i specify created >"2015-05-12 23:59:59" to get all the changes of the issue that occurred after 2015-05-12 23:59:59, Jira considers that i am looking for issue which created after specified time. How could i specify condition for changelog created time.

 

Thank you everyone

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Nitram
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 13, 2015

Hi,

Consider the below option,

http:server/rest/api/latest/search?jql="your JQL"&expand=changelog

 

You will get all the changelog here, So no need to use startAt or maxResults, so you will get a total record, with which you can iterate thro the records,

 

For your second question, In the above jql, you need mention the date, to get that part done

 

Hope this helps!

 

Tarun October 13, 2015

Jira specify date time in change log using keyword "created". If in jql i specify created >"2015-05-12 23:59:59" to get all the changes of the issue that occurred after 2015-05-12 23:59:59, Jira considers that i am looking for issue which created after specified time. How could i specify condition for changelog created time.

Volodymyr Krupach
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 13, 2015

it't not possible

Andrew Dant October 18, 2017

Can anyone further explain Nitram's answer to the first part? Is he saying that using expand=changelog will guarantee that all changes appear in the 'histories' array? Because the changelog object does have startAt, maxResults, and total fields and his answer hasn't explained what to do if total is greater than maxResults. Unless I've failed to understand something.

Like # people like this
TAGS
AUG Leaders

Atlassian Community Events