Change request cannot be moved from access to authorize

Rajesh77
Tera Contributor

Hi Experts,

 

Need you help on the below.

 

A change request cannot be moved from Assess to Authorize state when any associated CTASKS are unassigned to any individual. If in case the requester clicks on Request Approval without assigning the CTASK to an individual, it should throw out a message in Dialog box

 

Note : Assess to Authorize happens when the change is clicked on Request approval

13 REPLIES 13

RaghavSh
Kilo Patron

Create a before update BR on change table with condition "state changes to Authorize"

var ctask = new GlideRecord('change_request');
ctask.addQuery('change_request',current.sys_id);
ctask.addQuery('assigned_to' , '');
ctask.query();
if(ctask.getRowCount()>0)
{
current.setAbortAction(true);
}

Raghav
MVP 2023

its working partially, which means i clicked on the approvers tab and click on approved i got the error message and after that i assigned the CTASK to the respective person , then its not moving to "Authorize" state.

After assigning all CTASKs, what action did you do? you need to move it to authorize either through button or change state manually , only then it will work.

 


Raghav
MVP 2023

i got the error message, so have assigned the ctask to a person, and in the change form i should move to Authorize state manually, i have reloaded the form still its in Access state.