On-call callout from Alert

Harsh1
Tera Contributor

Call out feature is available for incident but not for the alert. I have tried to implement the same for the alert as well.

below i would try to demonstrate the same.

 

First type on-call ---> trigger rules in navigation panel

when you create a new record, you wont be able to find alert table in drop down.

Harsh1_0-1720444348424.png

to add alert to table drop down, we have to add this in trigger_rule_table_cfg table.

or search for Trigger Rule Table Config in navigation panel.

Here you need to create a new value for alert table. below is the screenshot

Harsh1_1-1720445346662.png

Now we can create an entry in trigger rules.

You can now see below that alert table is appearing

Harsh1_2-1720445472711.png

There are some conditions which we need to define. so here i hav defined only trigger for MAJOR severity alerts.

2nd tab is What action to take.
We have few OOTB workflows which can be used in here but we have to make changes to them.

1) On-Call: Assign by Acknowledgement 

2) On-Call: Assign by Acknowledgement per Rota
We can copy & create new workflows and we have to make changes in scripts.

Changes needed in On-Call: Assign by Acknowledgement 
Is the task already assigned? in following step needed to make changes as per alert table. Line 6 -11 below need to be replaced

 

 

   if (JSUtil.notNil(currentUser) || current.state=='Closed') {
        var message;
        if (current.state=='Closed')
            message = gs.getMessage("Escalation plan has been cancelled as {0} has been closed", [current.getTableName()]);
        if (currentUser)
            message = gs.getMessage("Escalation plan has been cancelled as {0} has been assigned", [current.getTableName()]);

 

 

In Parallel Rota Workflow Launch
just need to update the new workflow name in here
workflow: 'Alert On-Call: Assign by Acknowledgement per Rota'
 
In On-Call: Assign by Acknowledgement per Rota, there is also a small change needed.
1) in step Run 'On-Call: Assign by Acknowledgement' for Groups, we need to update sys id of 1st workflow we created.
2)in step Is the task already assigned?
need to make changes in script line 4-6

 

 

var userField = workflow.inputs.trigger_user_field;
    if (current.getElement(userField).nil() && (current.state=="Closed"))
        return "no";

 

 

 
now coming back to on-trigger rule which we created we have to put workflow name which we hv created or edited
in my case Alert On-Call: Assign by Acknowledgement.
 
Harsh1_0-1720448265874.png

 


 
 

 

 

 

 

0 REPLIES 0