Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Change Request Actual start date being auto set

nameisnani
Mega Sage

Hi Team ,

 

How to actual start date(work_start) and actual end date(work_end) work in change request? There is a requirement that i need disable the function that actual start date and actual end date auto capture in system, i found that it work in script include(ChangeRequestStateModelSNC_normal/standard/emergency) and protected. However, i can't find where to call this method(toImplement_moving() and to Review_moving()) . Can you please provide me detailed steps with testing .

 

I have written BR , can any one please help me here with my requriment .

 

When to run:
When: Before

(function executeRule(current, previous /*null when async*/) {

    // Prevent auto update of Actual Start Date
    if (current.work_start.changes() && previous.work_start.nil()) {
        current.work_start = previous.work_start; // Revert the change
    }

    // Prevent auto update of Actual End Date
    if (current.work_end.changes() && previous.work_end.nil()) {
        current.work_end = previous.work_end; // Revert the change
    }

})(current, previous);

,  

2 REPLIES 2

J Siva
Kilo Patron
Kilo Patron

Hi @nameisnani 

If you haven't made any customizations, then you just need to disable couple of business rules to stop that functionality.

JSiva_0-1741174592190.png

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @nameisnani 

My friend, a strong recommendation: don’t disable this. I worked as a Change Manager, and we tried this approach but faced a lot of issues:

  • Unable to get the correct time of change start
  • Users started missing deadlines, entering random times as they wished
  • SLAs got impacted
  • Reporting became unclear

And more... Please evaluate this thoroughly before making any changes.

*************************************************************************************************************
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]

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