Bypasses any remaining escalation time between the recipient currently scheduled to be notified and the next scheduled recipient within the team. This method uses the following rules to determine when the next recipient will be notified:
When implementing this method, note that Users cannot usually determine from the notification content which Team sent the notification they received. For example, in the case of Groups for which the Allow Duplicates feature is enabled, it is possible for a User to receive multiple notifications simultaneously and be unable to tell which notification came from which Team. The User is therefore unable to know in which Team they are attempting to escalate the notification.
@notification::notifyNext()
None
(string) the result of the attempt to escalate; possible values are:
The following code illustrates how to implement the notifyNext method as part of a custom response choice, Escalate Immediately:
IF ($response.response_event == "RECEIVED_RESPONSE")
# A group supervisor reponse will not have a person_target, thus we
# issue a "deliveredAll" for the event.
IF (EXISTS($event.debug))
@script::log("Response from recipient " & $response.recipient_target & ": " & $response.reply)
ENDIF
IF (EXISTS($event.debug))
@script::log($event.incident_id & ": Response from person " & $response.person_target)
ENDIF
$reply = $response.reply
IF ($reply == "Acknowledge" || $reply == "1")
IF (EXISTS($response.person_target))
@event::delink($response.person_target)
ELSE
@event::delinkAll()
ENDIF
ELSE-IF ($reply == "Clear" || $reply == "2")
@event::delinkAll()
# allow the main script to finish.
$main.continue = TRUE
ELSE-IF ($reply == "Ignore" || $reply == "3")
IF (EXISTS($response.person_target))
@event::delivered($response.person_target)
ENDIF
ELSE-IF ($reply == "Escalate Immediately" || $reply == "4")
$result = @notification::notifyNext()
@event::report($result)
IF (EXISTS($response.person_target))
@event::delivered($response.person_target)
ELSE
@event::deliveredAll()
ENDIF
ELSE
IF (EXISTS($event.debug))
@script::log($event.incident_id & ": Response unrecognized: " & $reply) ENDIF