/build/static/layout/Breadcrumb_cap_w.png

Report to show tickets modified in last 60 minutes

Using the report wizard, I've created a report
Display Fields: Ticket Info.Modified, Ticket Info.Owner, Ticket Info.Ticket ID, Ticket Info.Submitter, Ticket Info.Status
Created a Ticket Rule:
Ticket Info.Modified is With Past __ Hours

When I run the report for anything more than 16 hours it will return results.
These results list tickets modified up to within the last hour even.
Running the report for less than 16 hours shows no results.

Any ideas?

0 Comments   [ + ] Show comments

Answers (5)

Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
What version of KBOX is this and if you edit the SQL (do not save in this mode or you'll lose the wizard) what is the SQL you get?
Posted by: cawilson 13 years ago
Senior Yellow Belt
0
KBOX Systems Management Appliance v5.1.31237

SQL Select Statement:
SELECT HD_STATUS.NAME AS STATUS, HD_TICKET.MODIFIED AS HD_TICKET_MODIFIED, O.FULL_NAME AS OWNER_NAME, HD_TICKET.ID AS HD_TICKET_ID, S.FULL_NAME AS SUBMITTER_NAME FROM HD_TICKET JOIN HD_STATUS ON (HD_STATUS.ID = HD_TICKET.HD_STATUS_ID) LEFT JOIN USER O ON (O.ID = HD_TICKET.OWNER_ID) LEFT JOIN USER S ON (S.ID = HD_TICKET.SUBMITTER_ID) WHERE (HD_TICKET.HD_QUEUE_ID = 1) AND ( HD_STATUS.NAME LIKE '%Open%') ORDER BY HD_TICKET.MODIFIED asc,O.FULL_NAME asc
Posted by: dchristian 13 years ago
Red Belt
0
hey cawilson,

I think this is what your looking for.
SELECT HD_STATUS.NAME AS STATUS,
HD_TICKET.MODIFIED AS HD_TICKET_MODIFIED,
O.FULL_NAME AS OWNER_NAME,
HD_TICKET.ID AS HD_TICKET_ID,
S.FULL_NAME AS SUBMITTER_NAME
FROM HD_TICKET
JOIN HD_STATUS
ON ( HD_STATUS.ID = HD_TICKET.HD_STATUS_ID )
LEFT JOIN USER O
ON ( O.ID = HD_TICKET.OWNER_ID )
LEFT JOIN USER S
ON ( S.ID = HD_TICKET.SUBMITTER_ID )
WHERE HD_TICKET.HD_QUEUE_ID = 1
AND HD_STATUS.NAME LIKE '%Open%'
AND HD_TICKET.MODIFIED > DATE_SUB(NOW(),INTERVAL 60 MINUTE)
ORDER BY HD_TICKET.MODIFIED ASC,
O.FULL_NAME ASC


However i would suggest changing status name to status state.

This will show all tickets with an open status, not the word open in the name.
SELECT HD_STATUS.NAME AS STATUS,
HD_TICKET.MODIFIED AS HD_TICKET_MODIFIED,
O.FULL_NAME AS OWNER_NAME,
HD_TICKET.ID AS HD_TICKET_ID,
S.FULL_NAME AS SUBMITTER_NAME
FROM HD_TICKET
JOIN HD_STATUS
ON ( HD_STATUS.ID = HD_TICKET.HD_STATUS_ID )
LEFT JOIN USER O
ON ( O.ID = HD_TICKET.OWNER_ID )
LEFT JOIN USER S
ON ( S.ID = HD_TICKET.SUBMITTER_ID )
WHERE HD_TICKET.HD_QUEUE_ID = 1
AND HD_STATUS.STATE LIKE '%Open%'
AND HD_TICKET.MODIFIED > DATE_SUB(NOW(),INTERVAL 60 MINUTE)
ORDER BY HD_TICKET.MODIFIED ASC,
O.FULL_NAME ASC
Posted by: cawilson 13 years ago
Senior Yellow Belt
0
In a preliminary test it looks as though the second option you provided works.

I've set it up for testing and will confirm

Thanks for your input!
Posted by: cawilson 13 years ago
Senior Yellow Belt
0
Ok - so not so fine.

First,
Even though I have the option turned on to only send reports when results are present I receive the reports throughout the night when I know no one is working (we only offer support from 9-5).
When I open the report there are tickets identified as having been modified.
I open the specified ticket and it does not show any modifications as having happened in the history.
Any idea what it thinks is happening? Maybe you can advise how to include a section on what the modification is in the report?

Second,
The submmitter_name does not always fill in the report even though a submitter is chosen for every ticket

Third,
I also wanted to modify the report to include the ticket title

Again, any help with this would be greatly appreciated.
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