How to make work notes of child and parent incident visible for each other?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2024 11:20 PM
Hi,
Is there any way to show all work notes of parent incident on the child incident and all child work notes on parent incident and give the user an option to choose if to see it or not using the activity filter?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2024 04:01 AM
Hi @Alon Grod
There is no out-of-the-box (OOB) solution for this. The recommended approach is to use a Business Rule. You can refer to the detailed discussion and solution in this link.
Please mark my answer correct and helpful if this works for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-15-2024 04:46 AM - edited ‎09-15-2024 04:49 AM
write after update BR on Parent table when worknotes changes + parent incident is not empty
var grIncident = new GlideRecord('incident');
grIncident.addEncodedQuery('parent_incident='+current.sys_id);
grIncident.query();
while (grIncident.next()) {
grIncident.work_notes = current.work_notes.getJournalEntry(1);
grIncident.update();
}
write after update BR on child incident table when worknotes changes
var grIncident1 = new GlideRecord('incident'); if(grIncident1.get(current.parent.sys_id.toString()) grIncident1.work_notes = current.work_notes.getJournalEntry(1); grIncident1.update();