The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Hi 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Jared Kells
Contributor
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"`