I need to child incident sla_task paused when parent incident sla task changes to paused

Siva82
Tera Expert

Hi all,

In parent incident changes state is on hold and on hold reason reason is waiting caller then sla task will paused,so 

I need to child incident sla_task paused when parent incident sla task changes to paused.

 

Thank you

 

1 REPLY 1

Jake Sadler
Kilo Sage

Hi,

 Follow the below steps:

 

1. Create a business rule to set the state on the child incident to "on hold" when the parent incident state is "on hold".

 

2. I assume the same SLA is being triggered on the child incident so this will now pause the SLA.

 

Business Rule

Run after update on parent incident record

Conditions: state changes

 

Script:

 

(function executeRule(current, previous /*null when async*/) {

var gr = new GlideRecord('incident');
gr.addQuery('parent',current.sys_id);
gr.query();

while(gr.next()){

gr.state == current.state;

}
})(current, previous);

 

If this helps mark the answer as correct.