Quantcast
Channel: Support Portal
Viewing all articles
Browse latest Browse all 20315

Re : Incidents connected to asset report

$
0
0
Hi,

You could use the query below to generate the report.

SELECT si.resourcename 'Asset',wo.WORKORDERID "Request ID",cri.FIRST_NAME "Created By",longtodate(wo.CREATEDTIME) "Created Time",ti.FIRST_NAME "Technician",wo.TITLE "Subject",wotodesc.FULLDESCRIPTION "Description",rrs.RESOLUTION "Resolution" FROM WorkOrder wo LEFT JOIN SDUser crd ON wo.CREATEDBYID=crd.USERID LEFT JOIN AaaUser cri ON crd.USERID=cri.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 LEFT JOIN RequestResolver rrr ON wo.WORKORDERID=rrr.REQUESTID LEFT JOIN RequestResolution rrs ON rrr.REQUESTID=rrs.REQUESTID left join resources si on wo.workstationid=si.resourceid WHERE   wo.ISPARENT='1' 

Regards,
Stephen

Viewing all articles
Browse latest Browse all 20315

Trending Articles