Retrieving calculated Date/Time Field Result via Direct SQL For report

We use a Transition Date/Time Field and a calculated date/time custom fields to help us capture the time a ticket was Acknowledged and calculate the time it took to acknowledge.  I would like to get a report where SLA was or was not met, simply the Calculated time to ack > X.

I was going to attempt this report via a direct Database query/reporting tool, but it doesn't seem like that is a field that is actually 'stored'.  I could not understand or find out that  time is then determined.  Is that field actually store? or is it just rendered when viewing an issue 

1 answer

This widget could not be displayed.

A lot of fields in JIRA are not "stored".  They're derived from the data when they're requested.

For each one of those fields, you'll need to repeat the logic behind the calculation.  I think for Transitions, it probably looks in the history (that's what I did when I wrote a plugin to do something similar).  

If that is the case, you need to read back through changeitem (look for field status changed from X to Y) and changegroup (for the actual issue and the date/time) 

You should be able to do it with the workflow tables as well, I think, but I don't know them well enough to tell you which ones to look at.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

593 views 25 15
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