- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2024 02:40 AM
HI i have a requirement like when a major incident is created child incident description is copied to it at the beginning but now is should dynamically change like when a child incident desc is updated parent desc should also be automatically update how to achieve this through business rule??? #majorincident #incident
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2024 02:57 AM
hi @RMU ,
yes you need to make After update Business rule ,script something like below
if (current.parent != null) {
var parentIncident = new GlideRecord('incident');
if (parentIncident.get(current.parent_incident)) {
parentIncident.description += '' + current.description;
parentIncident.update();
gs.info('Parent incident description updated with child incident description.');
}
}
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2024 02:57 AM
hi @RMU ,
yes you need to make After update Business rule ,script something like below
if (current.parent != null) {
var parentIncident = new GlideRecord('incident');
if (parentIncident.get(current.parent_incident)) {
parentIncident.description += '' + current.description;
parentIncident.update();
gs.info('Parent incident description updated with child incident description.');
}
}
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2024 01:48 AM
Hi @Bhavya11 ,
Will there be any OOB functionality to copy description from child to parent incident?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2024 02:51 AM
Hi @RMU ,
There is no OOB functionality to copy description from child to parent incident.
Thanks,
BK