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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,558,955
Community Members
 
Community Events
184
Community Groups

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!
Apr 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

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