Changes that were caused by Incidents

Changes that were caused by Incidents



SELECT chdt.changeid                  "Change ID", 
       chdt.title                     "Change Title", 
       Longtodate(chdt.createdtime)   "Change Created Time", 
       Longtodate(chdt.completedtime) "Change Completed Time", 
       orgaaa.first_name              "Change Requested by", 
       ownaaa.first_name              "Change Technician", 
       stagedef.NAME                  "Change Status", 
       wo.workorderid                 "Request ID", 
       aau.first_name                 "Requester", 
       qd.queuename                   "Group", 
       ti.first_name                  "Request Technician", 
       Longtodate(wo.createdtime)     "Request Created Time", 
       Longtodate(wo.completedtime)   "Request Completed Time", 
       std.statusname                 "Request Status" FROM   changedetails chdt 
       LEFT JOIN sduser orgsd 
              ON chdt.initiatorid = orgsd.userid 
       LEFT JOIN aaauser orgaaa 
              ON orgsd.userid = orgaaa.user_id 
       LEFT JOIN sduser ownsd 
              ON chdt.technicianid = ownsd.userid 
       LEFT JOIN aaauser ownaaa 
              ON ownsd.userid = ownaaa.user_id 
       LEFT JOIN stagedefinition stagedef 
              ON chdt.stageid = stagedef.stageid 
       INNER JOIN incidenttochangemapping icm 
               ON chdt.changeid = icm.changeid 
       LEFT JOIN workorder wo 
              ON icm.workorderid = wo.workorderid 
       LEFT JOIN sduser sdu 
              ON wo.requesterid = sdu.userid 
       LEFT JOIN aaauser aau 
              ON sdu.userid = aau.user_id 
       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 statusdefinition std 
              ON wos.statusid = std.statusid 
       LEFT JOIN workorder_queue woq 
              ON wo.workorderid = woq.workorderid 
       LEFT JOIN queuedefinition qd 
              ON woq.queueid = qd.queueid 


                  New to ADSelfService Plus?

                    • Related Articles

                    • Incidents caused by Change

                      SELECT chdt.changeid                  "Change ID",         chdt.title                     "Change Title",         Longtodate(chdt.createdtime)   "Change Created Time",         Longtodate(chdt.completedtime) "Change Completed Time",  ...
                    • Problem and Associated incidents with Request id

                      MSSQL SELECT "prob"."PROBLEMID" AS "Problem ID", max("prob"."TITLE") AS "Title", longtodate(max("prob"."REPORTEDTIME")) AS "Reported Date", max("prob"."DUEBYTIME") AS "DueBy Date", max("orgaaa"."FIRST_NAME") AS "Reported by", max("probf"."UDF_CHAR1") ...
                    • Query to show total requests and changes with its total worklog hours of a technician- MSSQL

                      Working ON Builds: 14500 MSSQL: Requests: SELECT rctd.first_name "Technician", count(wo.workorderid) "Sum of tickets handled by him", ...
                    • Script: Close associated changes when a request is closed

                      Use case:  In many cases, the client never comes back to confirm the change. This means that the change remains opened indefinitely. When the ticket is closed it is logical that the change to be closed. No one is going to close a ticket unless the ...
                    • 11.0 Behavior changes wrt to admin operations

                      Module wise behavior changes : https://workdrive.zohoexternal.com/sheet/open/49yu6b27a538df41d4713b7ecdfbe3d0a5198 Settings wise behavior changes : https://workdrive.zohoexternal.com/sheet/open/6ji296663cae2c657417db16845f74c376f0e 11.0 Licensing ...