Feature request: paging strategy and active-hours restriction for Team targets on escalation rules
Feature request: paging strategy and active-hours restriction for Team targets on escalation rules
Summary
Team targets on on-call escalation rules currently support exactly one behavior: notify every member, always. This request is to add two per-target options:
- Paging strategy —
All at once(current behavior, default) orRound robin(one member per execution, rotating). - Active hours — an optional weekly time restriction (with timezone), using the same restriction model schedules already have, so a team target outside its window resolves to nobody and is skipped.
Together these would let a team be used directly as an escalation target in follow-the-sun setups and hunt chains, instead of being decomposed into one single-user schedule per engineer.
Current behavior (v master)
In Common/Server/Services/OnCallDutyPolicyEscalationRuleService.ts (startRuleExecution):
- A team target resolves via
TeamMemberService.getUsersInTeam()and notifies all members unconditionally — there is no strategy or restriction field onOnCallDutyPolicyEscalationRuleTeam. - A schedule target resolves via
OnCallDutyPolicyScheduleService.getCurrentUserIdInSchedule()to exactly one user, and is the only target type that understands time restrictions.
So "notify all of team X, but only during their shift" cannot be expressed, and "ring team members one at a time, fairly" cannot be expressed at all.
Use case
We run follow-the-sun on-call across four regional teams (Singapore, Paris, New York, San Francisco), each covering a fixed daily window, with a rotating weekend responder. Because a team target cannot be confined to a window, the only working pattern today is:
- one single-user schedule per engineer, with the shift window expressed as five weekly restriction entries, cloned per person;
- every escalation rule targeting the full list of personal schedules, relying on out-of-window schedules resolving to nobody.
This works (and works well — the skip semantics are sound), but the administrative cost scales with headcount instead of with teams:
- N engineers = N schedule objects to create, clone, and keep consistent.
- Onboarding one engineer means editing three rules on each of two incident policies, plus every pass of the incoming-call hunt chain.
- For the Incoming Call Policy, fairness between two engineers in the same location requires two mirrored rotation schedules (
Call 1st/Call 2nd) and a ~31-rule hunt chain, because there is no round-robin: re-ringing the same people requires re-listing the same targets in additional rules.
With this feature the same coverage becomes: four teams with active-hours restrictions + one weekend schedule. Onboarding = add the person to their team. The hunt chain collapses to one round-robin team target per location.
Proposed behavior
On OnCallDutyPolicyEscalationRuleTeam (and the equivalent target in Incoming Call Policies):
Semantics:
- All at once + restriction: notify every team member if the execution time falls inside the window; otherwise the target resolves to nobody and is skipped, exactly like an out-of-window schedule.
- Round robin: notify one member per rule execution, advancing a persisted cursor per (escalation rule, team). The cursor should only advance when the selected member was actually notified (has notification rules / wasn't skipped), mirroring the recent schedule-rotation fix where rotations only advance on periods that produced coverage — otherwise members with missing notification rules silently absorb turns.
- A rule whose targets all resolve to nobody should keep the existing behavior (re-sample, then fall through), so mixed rules of teams and schedules stay predictable.
- Round-robin state should be scoped per rule so the same team on two rules (e.g. two passes of a call hunt chain) rings different members, which is what makes short hunt chains possible.
Prior art
PagerDuty offers round-robin scheduling on escalation levels for exactly this fan-out-fairly case; combined with their team targets it is the main pattern this request reproduces.
Workaround today
One single-user schedule per engineer with weekly restriction entries, all schedules stacked on each rule. Functional, but O(engineers) objects, and every membership change touches every policy and the call hunt chain.
Source: OneUptime/oneuptime