Once Parent Incident Status Changes, Child Ticket Status Should Change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2019 04:14 AM
Hi All,
There is one requirement came up like once the Parent Incident Status Changes, similarly Child Incident Status should also change as well.
Can anyone let me know how to configure this requirement.
Thanks..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2019 03:05 AM
1. Create After update business rule:
2. Condtion : State changes
3. Add above mentioned code:
var gr = new GlideRecord("incident");
gr.addQuery('parent', current.sys_id);
gr.query();
while(gr.next()) {
gr.state = current.state;
gr.update();
}
Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade
Abhishek Gardade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2019 01:02 PM
There is an OOB rule to update status child incidents - Update Child Incidents if the parent incident is connected to child incident via parent_incident column. It can change the child incidents to resolved and updated the comment and worknotes on child incidents.