Change Request Actual start date being auto set

r_t_bryan
Kilo Expert

OOTB the actual start date on the change form is automatically being set, when the state is in implement. What is the BR / CS / UI policy which sets this, and how do I disable it?

Thanks,

Robert

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Robert,



Did you check the ui policy, client scripts for this. Also check whether this field is calculated field and uses script to set that.



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Justin Abbott
Giga Guru

It's inside of the ChangeRequestStateModelSNC_normal Script Include.



You can disable this by adding the following method to the ChangeRequestStateModel_normal Script Include, which extends the SNC one.



toImplement_moving: function() {


              if (this._gr.work_start.nil())


                      // Commenting this out so it doesn't set the Start Date


                      //this._gr.work_start = new GlideDateTime();




              return true;


      },



I added it on Line 176. You'd need to do the same thing in the ChangeRequestStateModel_emergency and ChangeRequestStateModel_standard Script Includes too.


Anurag Tripathi
Mega Patron
Mega Patron

There are script includes that start with 'ChangeRequestStateModelSNC' (name). one for each type. This is where the magic happens.


-Anurag