- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2022 02:24 PM
Good evening All,
is the below part of the OOB or not?
When associating a child incident with a parent incident, the child incident inherits from the parent incident assignment group.
If the assignment group of a parent incident changes, all child incidents inherit from the assignment group related to the parent incident
In the event of a change of group of a child incident following the change of group of a parent incident, the person in charge of the resolution of the child incident is emptied.
If not, any idea how to configure it?
Thanks
Alex
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2022 09:09 PM
Hi
This is not OOTB!! if the parent assignment group changes , the child assignment group doesn't change.
You need to write a business rule as below-
Name: Update Child Incident Assignment Group
Active: true
When: async
Order: 100
Update: true
Filter Conditions: Assignment group change AND Child Incidents is not 0
Advanced: true
Script:
(function executeRule(current, previous /*null when async*/) {
var grIncident = new GlideRecord("incident");
grIncident.addActiveQuery();
grIncident.addQuery("parent_incident", current.sys_id+"");
grIncident.setValue("assignment_group", current.assignment_group+"");
grIncident.setValue("assigned_to", current.assigned_to+""); // In case you want assinment group emty then comment this and uncomment below line
// grIncident.setValue("assigned_to", "");
grIncident.updateMultiple();
})(current, previous);
*please check the comment specified inline
In case you also want to change the assignment group automatically when a new child incident is added under a change then also add this BR-
Name: Update Assignment Group from Parent
Active: true
When: before
Order: 1000
Insert: true
Update: true
Filter Conditions: Parent Incident is not empty
Advanced: true
Script:
(function executeRule(current, previous /*null when async*/) {
current.assignment_group = current.parent_incident.assignment_group;
current.assigned_to = current.parent_incident.assigned_to; // In case you want assinment group emty then comment this and uncomment below line
// current.assigned_to = "";
})(current, previous);
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2022 09:09 PM
Hi
This is not OOTB!! if the parent assignment group changes , the child assignment group doesn't change.
You need to write a business rule as below-
Name: Update Child Incident Assignment Group
Active: true
When: async
Order: 100
Update: true
Filter Conditions: Assignment group change AND Child Incidents is not 0
Advanced: true
Script:
(function executeRule(current, previous /*null when async*/) {
var grIncident = new GlideRecord("incident");
grIncident.addActiveQuery();
grIncident.addQuery("parent_incident", current.sys_id+"");
grIncident.setValue("assignment_group", current.assignment_group+"");
grIncident.setValue("assigned_to", current.assigned_to+""); // In case you want assinment group emty then comment this and uncomment below line
// grIncident.setValue("assigned_to", "");
grIncident.updateMultiple();
})(current, previous);
*please check the comment specified inline
In case you also want to change the assignment group automatically when a new child incident is added under a change then also add this BR-
Name: Update Assignment Group from Parent
Active: true
When: before
Order: 1000
Insert: true
Update: true
Filter Conditions: Parent Incident is not empty
Advanced: true
Script:
(function executeRule(current, previous /*null when async*/) {
current.assignment_group = current.parent_incident.assignment_group;
current.assigned_to = current.parent_incident.assigned_to; // In case you want assinment group emty then comment this and uncomment below line
// current.assigned_to = "";
})(current, previous);
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep