/build/static/layout/Breadcrumb_cap_w.png

Time Open Field

We are still using Kbox 5.2 version and inside the service desk tab tickets have a "Time Open" column. This column will display like 55m, 3h 10m, 54d 13h, etc... I am wondering how this field is calculated and how I could add this to a kbox report.

I am trying to average the time open for a select group of open tickets.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: GillySpy 12 years ago
7th Degree Black Belt
0
The "time open" column is the difference between the current timestamp and the TIME_OPENED field. The TIME_OPENED field represents the last time the ticket was first placed in an opened state. Usually that will be the same as the last time it was place in an opened state but if a ticket is moving from one opened state directly to another then it's not. It is stored in the database as a timestamp (YYYY-MM-DD HH:mm:ss).

It is not a calculation of the time a ticket has been opened.
To add TIME_OPENED it to a report you have something like this:


select -- columns here,
HD_TICKET.TIME_OPENED
-- , columns here
FROM HD_TICKET
/* joins, etc */
WHERE
1=1
/*and where filters */


to add an equivalent of "Time Open" you would have this. this is in seconds so you have to massage it with a function:


select -- columns here,
UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(HD_TICKET.TIME_OPENED) -- add some translation to it
-- , columns here
FROM HD_TICKET
/* joins, etc */
WHERE
1=1
/*and where filters */


If you truly want a timer then see this:
http://itninja.com/question/servers-installation-help03&mpage=1&key=&#
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ