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?
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)
Please log in to answer
Posted by:
GillySpy
13 years ago
Posted by:
cawilson
13 years ago
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
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
hey cawilson,
I think this is what your looking for.
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.
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
Posted by:
cawilson
13 years ago
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.
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.
so that the conversation will remain readable.