Request closed by and Resolved by from history
This report is used to find the closed by and resolved by technician from the history. In some cases the request may be assigned to some technician and it is closed by a different technician. This information is captured in the history.
To make any changes to a query, refer to the KB article below.
SELECT wo.WORKORDERID "Request ID",
wo.title "Subject",
ti.FIRST_NAME "Technician",
aau.FIRST_NAME "Requester",
(SELECT max(re.first_name) FROM workorderhistory woh1
LEFT JOIN aaauser re ON woh1.operationownerid=re.user_id
WHERE woh1.workorderid=wo.workorderid
AND woh1.operation='RESOLVED') "Resolved by",
(SELECT max(ce.first_name) FROM workorderhistory woh2
LEFT JOIN aaauser ce ON woh2.operationownerid=ce.user_id
WHERE woh2.workorderid=wo.workorderid
AND woh2.operation='CLOSE') "Closeby" FROM WorkOrder wo
LEFT JOIN SDUser sdu ON wo.REQUESTERID=sdu.USERID
LEFT JOIN AaaUser aau ON sdu.USERID=aau.USER_ID
LEFT JOIN WorkOrderToDescription wotodesc ON wo.WORKORDERID=wotodesc.WORKORDERID
LEFT JOIN WorkOrderStates wos ON wo.WORKORDERID=wos.WORKORDERID
LEFT JOIN SDUser td ON wos.OWNERID=td.USERID
LEFT JOIN AaaUser ti ON td.USERID=ti.USER_ID
WHERE (wo.ISPARENT='1')
AND wo.CREATEDTIME >= <from_lastmonth>
AND wo.CREATEDTIME <= <to_lastmonth>
Note : Login to ServiceDesk Plus, go to Reports tab > New Query Report > Copy the query to the query editor and run the report.
New to ADSelfService Plus?