71 views

Description

If you have specified a lead time of 0 for your ROTA and rosters, scheduled reminders are never sent for that group.

 

Steps to Reproduce

  1. Create a rota and rosters with lead times of 0.
  2. Start the rotation today.
  3. Do one of the following:
    • set the reminder scheduled job to a time in the past and let it run
    • run new OnCallRemindersNG().sendReminders(null); from scripts background

Notice no reminders are sent out.

Workaround

This problem was fixed in Helsinki, where the following components have been updated:

- sys_script_include_737302d60a0a2c9648e2880d323fa067

- sys_script_include_277ca4139f231100d8f8700c267fcf56

 

On earlier releases, a workaround consists in changing the OnCallRemindersNG script include, from: 

daysToRotation = rotationInterval - daysDifference % rotationInterval;
//if endOfRotation is true we need number of days to end of current rotation
if (endOfRotation && (daysToRotation > 0))
daysToRotation--;

return daysToRotation;

To:

var daysIntoRotation = daysDifference % rotationInterval;
if (daysIntoRotation == 0)
return 0;

daysToRotation = rotationInterval - daysIntoRotation;

//if endOfRotation is true we need number of days to end of current rotation
if (endOfRotation && (daysToRotation > 0))
daysToRotation--;
return daysToRotation;


Related Problem: PRB624848

Seen In

Eureka Patch 1 Hot Fix 6
Fuji Patch 9

Fixed In

Helsinki

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-03-30 05:15:02
Published:2018-03-30