Stalled tickets by owners report - editing.
Hi,
In Kace there is a "stalled tickets by owners" report, we currently have two queues in kace for the servicedesk. This report is bringing back both queues. Is there a way to filter it so it only brings back the IT queue.
My Sql isn't the greatest....so any help is welcome
Thanks
In Kace there is a "stalled tickets by owners" report, we currently have two queues in kace for the servicedesk. This report is bringing back both queues. Is there a way to filter it so it only brings back the IT queue.
My Sql isn't the greatest....so any help is welcome
Thanks
1 Comment
[ + ] Show comment
-
Hi Hobbsy, Thanks that worked perfectly. - Leathams 9 years ago
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
Hobbsy
9 years ago
Top Answer
Open your report "Stalled Tickets by Owner" and duplicate the report.
select HD_TICKET.ID,
Open your "Copy of Stalled Tickets by Owner" report (feel free to rename)
Into the report SQL text add the highlighted lines:
select HD_TICKET.ID,
HD_TICKET.TITLE ,
HD_TICKET.DUE_DATE,
HD_TICKET.HD_QUEUE_ID,
CONCAT(IF(TIME_TO_SEC(NOW()) >= TIME_TO_SEC(HD_TICKET.TIME_OPENED),
TO_DAYS(NOW()) - TO_DAYS(HD_TICKET.TIME_OPENED),
TO_DAYS(NOW()) - TO_DAYS(HD_TICKET.TIME_OPENED) - 1), 'd ',
DATE_FORMAT(ADDTIME("2000-01-01 00:00:00",
SEC_TO_TIME(TIME_TO_SEC(NOW())-TIME_TO_SEC(HD_TICKET.TIME_OPENED))),
'%kh %im')) AS TIME_OPEN,
HD_PRIORITY.NAME as PRIORITY,
HD_CATEGORY.NAME as CATEGORY,
HD_STATUS.NAME as STATUS,
HD_IMPACT.NAME as IMPACT,
MACHINE.NAME as MACHINE_NAME,
ifnull((select FULL_NAME from USER where HD_TICKET.OWNER_ID = USER.ID),' Unassigned') as OWNER_NAME,
(select FULL_NAME from USER where HD_TICKET.SUBMITTER_ID = USER.ID) as SUBMITTER_NAME
from HD_TICKET
left join HD_CATEGORY on HD_CATEGORY_ID = HD_CATEGORY.ID
left join HD_STATUS on HD_STATUS_ID = HD_STATUS.ID
left join HD_PRIORITY on HD_PRIORITY_ID = HD_PRIORITY.ID
left join HD_IMPACT on HD_IMPACT_ID = HD_IMPACT.ID
left join MACHINE on HD_TICKET.MACHINE_ID = MACHINE.ID
where HD_STATUS.STATE = 'stalled' and HD_TICKET.HD_QUEUE_ID = '1'
order by OWNER_NAME, HD_PRIORITY.ORDINAL, HD_CATEGORY.ORDINAL, HD_STATUS.ORDINAL, HD_IMPACT.ORDINAL
The top insert will select the field in the ticket table that holds the Queue Identifier and the second insert in the "where" section holds the numeric identifier.
To find your queue numeric identifier go to Service Desk>Configuration and Queues
Hover over your queue name in the list shown and in the bottom left hand corner text will appear giving the ID number
for example