Hello everyone,
I have the system configured to make notification to the admin immediately, then first escalation after 20 minutes to the manager, second escalation after extra 20 minutes (total of 40m), and a third escalation level after 60 minutes.
We need to give the manager role the ability to respond with Acknowledge to acknowledge the event, and also delay the next level of escalation by extra time (lets say 40 minutes).
Can you please advise how this can be done, what changes I need to make in the script?
below is the current acknowledge response script:
@event::delivered($target_id)
ELSE-IF ($acknowledge)
@person = @event::getRecipient( $response.person_target )
$userrole = $person.roles
IF ( $person.roles == "Manager" )
$response.request_text = "Acknowledge"
$response.message_note = "Acknowledged by " & $target_name
IF (EXISTS($event.debug))
@script::log( $main.log_prepend & $response.message_note )
ENDIF
call sendMessage
# notification delivered to this person
@event::delivered($target_id)
I tried adding delay:
# Create a 40 minute delay
# @notification::setDelay(2400)
# @notification::performNotification ()
Unfortunately the notification continue, and it it even starts again after this time delay is elapsed
I wonder if anyone can help, thanks in advance
Regards