- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2023 06:43 PM
I have a child and parent incident and I want to have them both synchronized especially to these 3 fields (state, priority, notes).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2023 10:32 PM
Hi @zaxjun ,
If you want synchonize parent and child incident means ,You need to write a business rule in Incient.
1.Child to Parent
var childToParent = new GlideRecord('incident');
if (childToParent.get(current.parent)) {
childToParent.state = current.state;
childToParent.priority = current.priority;
childToParent.work_notes = current.work_notes;
childToParent.update();
}
2.Parent to child
- Incident have OOB business rule called "Update Child Incidents",In this business rule you can add additional fields to updation from parent to child.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2023 02:16 AM
This is a perfect solution. Thank you Raja!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2023 12:39 AM
Hello Raja, Good day! Another question is, why is it only 1 child will be updated? Why not all child connected to the parent ticket.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2023 07:15 AM
Hello @zaxjun Welcome back,
Can you please recheck it once because if you update parent means child also get updated.
For example,
One parent have multiple child incidents
- We have One parent and Two child means ,If you update state new to in progress in parent means it will affect child also.
- But if you change the state close in parent means it will not affect in child .This default rule in OOB .Because who create the incident only can close the state or that incident automatically close in 7 day( Auto closure () ).
- Still you have doubt means please visit below documentation.
- https://docs.servicenow.com/en-US/bundle/vancouver-it-service-management/page/product/incident-manag...
Thanks @zaxjun
Have a great day !!!