I need to child incident sla_task paused when parent incident sla task changes to paused
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2022 06:56 AM
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
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2022 07:18 AM
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.