Why isn't my Change State transitioning automatically?

Rich7
Tera Expert

I have modified our Change Request to use the Change Model transitions but the OOTB one that goes from Implement to Review is not automatically transitioning.  I have setup the Transition to be automatic with no conditions and yet it still don't work.  Where can I look to try and troubleshoot?

4 REPLIES 4

psyherin
Kilo Sage

Hi Rich,

If you see the hint on Automatic transition it says transition to this state automatically IF the conditions are met so it looks like you need a model state transition conditions to kick off the automation.

 

find_real_file.png

 

Regards

I tried putting a condition too but it still didn't work

benedikt
Tera Contributor

It looks like there is one Business Rule missing to run the Automatic Change Model transitions.
I'll create a case for this.

As workaround I created one new BR on change_request for insert and on update:
Condition: Model is not empty
Script:
(function executeRule(current, previous /*null when async*/) {
    var changeModel = new ChangeModel(current.chg_model.getRefRecord());
    changeModel.applyAutomaticTransition(current);
})(current, previous);

Cruz Melendi
ServiceNow Employee
ServiceNow Employee

Hi,

 

Have you verified that you have a flow with the action Evaluate Change Model triggered for this state transition?

 

Regards