andrew_och
ServiceNow Employee
ServiceNow Employee

The Repeat Until attribute on Schedule Entries provides a way to alter the start and/or end time of a rota and how it repeats.

schema.png

Imagine a scenario where from a particular date, rotations should change from 8am-5pm to 9am-6pm i.e. moving forward by one hour. To do this, simply create a new Schedule Entry with the new hours 9am-6pm. The old schedule entry should have its Repeat Until field populated with the last time the 8am-5pm rota should apply, in the example below that is 2016-05-11. The new Schedule Entry should have a Start Date time of the following day, 2016-05-12 along with the new start time of 9am and end time of 6pm as shown below.

repeatUntilStartDateTime.png

Note, if the Repeat Until date of the old Schedule Entry and the Start Date Time of the new Schedule Entry are on the same day, you will receive an error about overlapping spans as shown in below.

calendarScheduleOverlapErr.png

As long as your Schedule entries do not overlap you will should see the rotation change in the calendar, as with the example below changing on 2016-05-12 to the new rota time of 9am-6pm.

calendarRotaTimeChange.png