Change Management – Model state transition condition in Change Models

Victor Montiel
Giga Contributor

Hello, me and my team are trying to utilize the transition condition for states in change models, in order to push change records from Scheduled to Implement automatically when the start date has passed.

 

For that:

 

  1. we’ve created a change model that has all the available model states.

VictorMontiel_0-1683583816993.png

 

  1. At the Scheduled state we’ve added 3 transitions, one of them is automatic

VictorMontiel_1-1683583835933.png

VictorMontiel_2-1683583860818.png

 

  1. In that automatic transition we added a Model State Transition Condition with the following criteria: Model is “Model name” and Planned start date on Yesterday

VictorMontiel_3-1683583877145.png

 

Our understanding is that if a change in Scheduled state, created from this model has an start date in yesterday, it will be moved from Scheduled to Implement automatically, nevertheless, as we have created test changes, moved them to Scheduled change, and one day after the planned start date, the ticket does not move.

I'd like to know if our understanding on this feature is wrong or we are making an error.
Thanks.

3 REPLIES 3

Marko5
Tera Contributor

I tried something similar but came to the conclusion that there is nothing which will automatically check that conditions.

Actually there are flows defined for all ServiceNow baseline change models per different state (e.g. Change - Normal - Authorize) and in that flows at some point it triggers the following "Action" -> "Evaluate Change Model". This is also a baseline action which executes 

"new global.ChangeFlowUtil(inputs.change_request).evaluateChangeModel();" 
After a cascade of different script includes (part of state model functionality) it will check all your automatic transitions. 
What you have to do to solve your problem is to schedule a recurring job, executing these "evaluateChangeModel()" for your change requests in question (like all change requests in "scheduled" state from model "xyz").

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Victor Montiel 

 

Please log a HI case.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Sandeep Rajput
Tera Patron
Tera Patron

@Victor Montiel Please refer to this thread https://www.servicenow.com/community/developer-forum/why-isn-t-my-change-state-transitioning-automat... and check if suggestions made by the fellow members help