Tested in builds PGSQL (14300) or MSSQL (14306)
This is a comprehensive report on the total number of requests updated by a technicians. This query provides a holistic view of technician activity like updating resolution process, such as updating or modifying fields, sending replies, adding or modifying work logs or tasks, and more.
SELECT wo.WORKORDERID AS "Request ID", wo.WORKORDERID AS "Request ID", ad.ORG_NAME AS "Account", sdo.NAME AS "Site", longtodate(wh.operationtime) "Updated time", au.first_name "Updated by" FROM WorkOrder wo
LEFT JOIN WorkOrderAccountMapping wam ON wo.WORKORDERID=wam.WORKORDERID
LEFT JOIN PortalAccounts port_acc ON wam.ACCOUNTID=port_acc.ACCOUNTID
LEFT JOIN AccountDefinition ad ON port_acc.ACCOUNTID=ad.ORG_ID
LEFT JOIN WorkOrderStates wos ON wo.WORKORDERID=wos.WORKORDERID
LEFT JOIN SiteDefinition siteDef ON wo.SITEID=siteDef.SITEID
LEFT JOIN SDOrganization sdo ON siteDef.SITEID=sdo.ORG_ID
LEFT JOIN workorderhistory wh on wh.workorderid=wo.workorderid
left join aaauser au on au.user_id=wh.operationownerid
where wh.operation ='update' and au.first_name ='TechnicianName' and wh.OPERATIONTIME >= <from_today> AND wh.OPERATIONTIME <= <to_today> order by 1