Extract date and time when status changed using REST API

Dinesh Kannan
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!
April 10, 2023


I have been trying to extract the date and time info of the status which changed to verify using REST api. I couldn't find the valid transition/history page extraction through API. 

Please help on this issue. 

I am using CURL commands to work on the APIs.

1 answer

0 votes
Jared Kells April 10, 2023

You can include the changelog in your request which might help. For example: `/rest/api/latest/issue/demo-1?fields=status&expand=changelog`

See: the expand property in the docs here. https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get

This will only give you the most recent changes and it will include every field. Alternatively for all changes you can use the changelog api: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-changelog-get

You'll need to page through the whole log looking for status changes.

Alternatively if you're just looking for issues that changed status at a particular time you could try the CHANGED operator in JQL and search for the issues like this: `status CHANGED FROM "In Progress" TO "Done" AFTER "2022-01-01"`

Suggest an answer

Log in or Sign up to answer