We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Child incident inheritance from parent, OOB or not?

Alexandre BRIGH
Tera Contributor

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

1 ACCEPTED SOLUTION

Not applicable

Hi @Alexandre BRIGHT ,

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 ConditionsAssignment 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 ConditionsParent 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

View solution in original post

1 REPLY 1

Not applicable

Hi @Alexandre BRIGHT ,

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 ConditionsAssignment 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 ConditionsParent 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