How to auto-populate Child incidents with parent incident assignment group and assigned to?

Wendy20
Tera Expert

Hello,

How can I auto-populate Child incidents fields with parent incident assignment group and assigned to? Thank you for your help in advanced 🙂

 

Wendy

4 REPLIES 4

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Write a BR after insert/update on Incident table

 

Condition:- Parent Incident is not empty

 

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


        current.assignment_group = parent_incident.assignment_group;
	current.assigned_to = parent_incident.assigned_to;
	current.update();
    


})(current, previous);

 

Please mark my answer as correct based on Impact.

Please don't recommend a 'current.update();' in an After business rule. if absolutely needed, add 'current.setWorkflow(false); before that.

Misgana
Tera Guru

You can create a Business Rule to run when a record is inserted or updated depending on your use case that checks the parent field of the child incident if it's not empty assign the 'assignment group' and 'assigned to' fields by dot-walking or even glide recording the parent incident.

 

Please marks as Helpful if this fixes the issue or guides you to the solution.

Kasi Dhanabalan
Tera Expert

Hi @Saurav11 ,

1. Navigate to sys_properties.LIST

2. Search for "com.snc.incident.copy.attributes" system property  or use the below URL to navigate to the system property.

https://<instance-name>.service-now.com/nav_to.do?uri=sys_properties.do?sys_id=110d231a531232000600e...

3. In the value field, add the field names separated by Comma. PFA the Screenshot.

KasiRamanatha1_0-1665973325259.png