Cab

Cab




SELECT changetocab.changeid          "ChangeID", 
       chdt.title                    AS "Title", 
       ctdef.NAME                    AS "Change Type", 
       ownaaa.first_name             AS "Change Owner", 
       stageDef.displayname          AS "change Stage", 
       statusDef.statusdisplayname   AS "Change Status", 
       orgaaa.first_name             AS "Change Requester", 
       approvaldef.statusname        AS "Approval Status", 
       Longtodate(apprd.action_date) "Approval date", 
       apprd.comments                "Comments", 
       aaauser.first_name            "CAB Member", 
       apprd.statusname              "Status" FROM   changetocab 
       LEFT JOIN aaauser 
              ON changetocab.userid = aaauser.user_id 
       LEFT JOIN (SELECT apprstagetochange.changeid, 
                         approvaldetails.approvalid, 
                         approvaldetails.approval_stageid, 
                         approvaldetails.email, 
                         approvaldetails.action_date, 
                         approvaldetails.comments, 
                         approvaldetails.approval_key, 
                         approvaldetails.approvedby, 
                         approvaldetails.approverid, 
                         approvaldetails.isdeleted, 
                         approvalstage.userid, 
                         approvalstage.sent_date, 
                         approvalstatusdefinition.statusname FROM   approvalstage 
                         LEFT JOIN apprstagetochange 
                                ON approvalstage.approval_stageid = 
                                   apprstagetochange.approval_stageid 
                         LEFT JOIN approvaldetails 
                                ON apprstagetochange.approval_stageid = 
                                   approvaldetails.approval_stageid 
                         LEFT JOIN approvalstatusdefinition 
                                ON approvaldetails.statusid = 
                                   approvalstatusdefinition.statusid) apprd 
              ON changetocab.userid = apprd.approverid 
                 AND changetocab.changeid = apprd.changeid 
       LEFT JOIN changedetails chdt 
              ON changetocab.changeid = chdt.changeid 
       LEFT JOIN change_fields cf 
              ON chdt.changeid = cf.changeid 
       LEFT JOIN approvalstatusdefinition approvaldef 
              ON chdt.appr_statusid = approvaldef.statusid 
       LEFT JOIN change_stagedefinition stageDef 
              ON chdt.wfstageid = stageDef.wfstageid 
       LEFT JOIN change_statusdefinition statusDef 
              ON chdt.wfstatusid = statusDef.wfstatusid 
       LEFT JOIN sduser orgsd 
              ON chdt.initiatorid = orgsd.userid 
       LEFT JOIN aaauser orgaaa 
              ON orgsd.userid = orgaaa.user_id 
       LEFT JOIN changetypedefinition ctdef 
              ON chdt.changetypeid = ctdef.changetypeid 
       LEFT JOIN sduser ownsd 
              ON chdt.technicianid = ownsd.userid 
       LEFT JOIN aaauser ownaaa 
              ON ownsd.userid = ownaaa.user_id 
ORDER  BY 1 


                  New to ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • How to assign CAB members to a change request automatically.

                        Note:  Attached script will not work beyond 11138 SDP Version. ​ This is a sample script to add CAB Members to a Change Request through Change Custom Triggers.The CAB Members can only be added manually to the Change Request ,under the Approval Tab, ...
                      • Set CAB based on change type

                        Requirement: Set CAB members depending on the change type chosen, every time a change request is created. Steps to follow: Goto Admin > Developer Space > Global function > New > Paste the content from the attachment  Global_function_4.txt  and save ...
                      • Dynamically add CAB based on Risk field value

                        Requirement: Based on the Risk field value chosen, a set of CAB approvers have to be added to the Change UseCase: There will be different sets of CAB approvers available and when a Change is created with ‘Low/Medium’ risk a set of CAB approvers have ...
                      • Debug Prints in FastText Algorithm

                        Issue: The zia category/template prediction model loading thread got stuck for a long time. Instructions: -> Download the attached file (zlabs-ml-fasttext.jar.txt) and rename it to zlabs-ml-fasttext.jar. -> Stop the Application service -> Please take ...