How to auto-populate Child incidents with parent incident assignment group and assigned to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 11:14 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 12:04 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2022 07:55 AM
Please don't recommend a 'current.update();' in an After business rule. if absolutely needed, add 'current.setWorkflow(false); before that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2022 06:27 AM - edited 10-14-2022 07:15 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2022 07:22 PM
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.
3. In the value field, add the field names separated by Comma. PFA the Screenshot.