OnCallRotation - getCatchAllType(String rotaID)

Gets the type of _catch all_ that lives at the end of the escalation chain. When the escalation chain finishes without assigning an on-call person, if configured, the incident is assigned to the _catch all_.

Table 1. Parameters
Name Type Description
rotaID String The sys_id of the rota.
Table 2. Returns
Type Description
String
  • Null: invalid rota id or catch all is not available.
  • Group_manager: the manager of the group linked to the rota is the catch all person.
  • Individual: a configured user is the catch all person.
  • All: all members of the configured roster are the catch all person.
var rotaID = "...";
var rota = new SNC.OnCallRotation()
gs.log("catch all: " + rota.catchAll(rotaID) + " (type:" + rota.catchAllType(rotaID) + ")");
}