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
Community moderators have prevented the ability to post new answers.
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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it't not possible
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.