Anyone familiar with how the change "outside maintenance schedule" checkbox works?

e_wilber
Tera Guru

There is a checkbox on the Change record "Outside schedule maintenance ".

I added this to the form to see when it actually gets checked and I can't find a scenario where it is. I've done this in two environments where one is completely OOB and the other has a slightly modified change process but I'm doubtful anything in this area has changed.

I created a maintenance schedule that applies to "cmdb_ci" with no conditions. My schedule entry is set from 6/7 to 6/7, repeats daily, repeats every 1 day and repeats until 6/30.

I created a new change record with a planned start and end date that falls directly in the middle of my maintenance window and select a CI. After saving the form, I click the CONFLICT checker and it says there are conflicts, just not the maintenance window I created. I have every single property under Conflict Properties checked.

Am I misunderstanding something? I added all the related screen shots below. I'm not sure why I'm not getting the checkbox to autocheck, the conflict checker to come back with my maintenance window conflict, or why I can't get this to show up as a red color on the change calendar.

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

10 REPLIES 10

Uday Kumar Mai1
ServiceNow Employee
ServiceNow Employee

Hello Everyone, 

 

for more information about the outside maintenance schedule field. you can have a look at this post.

 

We have a table called "Maintenance Schedules" https://<instance>.service-now.com/cmn_schedule_maintenance_list.do

where in the above table we define the Maintenance Schedules, we can define the conditions when this schedule should be applied for eg if the condition is

Applies to Configuration Item like that

in the Maintenance Schedules page under related list you can able to see the "Schedule Entries" Where we define the Schedule for Maintenance.

If you check the CI which is attached to the Change Request, in the CI there will be field called "Maintenance Schedules" which is to fill the Schedule

If the Planned start and End date are not equal to the schedule which is defined in the "Schedule Entries" Related list in Maintenance Schedules

Business Rule https://<instance>.service-now.com/nav_to.do?uri=sys_script.do?sys_id=8747477a0a0a0b3e49e8ef8be4f6ddcc gets triggered when Before insert or update.

This business will invoke the Script include "https://<instance>.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=96fce53cc0a801642760dfcee0e04711"

which validates the Maintenance Schedule field in CI and then returns a boolean value either true or false

Then the Business Rule will be updating the Outside Maintenance schedule field to true if the Planned start and end date are outside of the scheduled date defined in the Maintenance schedules

You can try following
1. Login to instance
2. Take any CI and try to bring out the Maintenance schedule field and update the schedule
3. Try to give the planned start and end which is not equal to the Scheduled defined date in the scheduled entry
4. you can see the BR Outside Outside Maintenance schedule will gets trigger and will check the checkbox
5. Try to give the dates same as scheduled entry the field will be unchecked.


Outside Maintenance Schedule field will be checked automatically if the Planned Start date and Planned end date of Change request is not equal to the scheduled entry date.

 

it will be checked automatically because BR (8747477a0a0a0b3e49e8ef8be4f6ddcc) with Before insert or Update for each update this field will be validated.

Schedule Entries: "https://<instance>.service-now.com/cmn_schedule_span_list.do?sysparm_query=&sysparm_view="

 

Let me know if this helps!!

 

Thanks

Uday.