Linked request

Linked request

This report is used to find the child request id that are linked to the parent request id. 


SELECT wos.linkedworkorderid "Request ID",
       wo.TITLE "Subject",
       std.STATUSNAME "Request Status",
       rtdef.NAME "Request Type",
       longtodate(wo.CREATEDTIME) "Created Time",
       wo.workorderid "Linked to" FROM WorkOrder wo
LEFT JOIN WorkOrderStates wos ON wo.WORKORDERID=wos.WORKORDERID
LEFT JOIN RequestTypeDefinition rtdef ON wos.REQUESTTYPEID=rtdef.REQUESTTYPEID
LEFT JOIN StatusDefinition std ON wos.STATUSID=std.STATUSID
WHERE (wo.ISPARENT='1')
  AND wos.linkedworkorderid IS NOT NULL
ORDER BY 1
 

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?