Send to CAB manually

athavichith
Mega Sage

Hi everyone,

 

We’re looking to customize Change Management to allow Change Managers to manually trigger a CAB approval request on a Change Request—even when it doesn’t automatically flow into CAB via the standard state model. This is to meet our business needs where certain changes require a CAB review outside of the usual criteria.

 

What we’re trying to do
Create a UI Action that behaves like the OOTB “Request Approval” but specifically targets CAB approval (i.e., creates the CAB approval records and moves the Change into the correct state/stage as if CAB were requested via state model rules).

 

What I tried
I created a client-side UI Action as a copy of the OOTB “Request Approval” and wired it to the state model action key.  But everytime I try to run this, I get "Action not authorized".  Here’s the script:

function sendtoCAB(){
    g_form.setValue("state", "-3");
    gsftSubmit(null, g_form.getFormElement(), 'state_model_request_cab_approval');
}

if (typeof window == 'undefined')
   updateAndRedirect();

function updateAndRedirect() {
    current.update();
    action.setRedirectURL(current);
}




0 REPLIES 0