How to get the time ticket was in a state

HI --

I am looking to get the information on the time that a ticket was in a particular state. Is there a way i can get this information from the Database or is there a Rest API that i can use to get this information. I found the following query in the web

but this seems to be outdated and most of the tables referenced here are emtpy.

I user oracle database. If database is not the way to go can i use any REST or webservice call to get the information.

greatly appreciate your help

1 answer

1 accepted

1 vote
Accepted answer

The tables referenced in that example query don't come up empty for me. The comment "::Key of project" is misleading through because it should actually be the issue key.

The expanded query that I used - based on that example - to get a sequence of statuses with their respective timestamps is:

WHERE = changeitem.groupid AND
 changegroup.issueid = AND
 jiraissue.pkey = '<issue key>' AND
 changeitem.field = 'status'
 changegroup.created DESC

You could amend this to pick the valid statuses and/or do the calculation for you.

this does work for me as well. Thanks for the answer.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in Off-topic

Friday Fun: Dry T-Shirt Competition - What's your BEST (Atlassian) T-Shirt!?

[Note: So it was my turn for Friday Fun and sadly I was sick thanks to rubbish sinus infection... so apologies to most of Europe and Asia for the delayed post. However, I finally got out of bed for t...

129 views 6 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you