- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2017 09:34 PM
I was wonder if it is possible to get an Incident Task to update the parent Incident's activity feed? I would like to see any updates to the task comments or work notes and any changes to the task state.
Since I'm very new to ServiceNow I'm not sure if I am asking this question to the right group of if I was clear in my request, if not I'm happy to provide more detail.
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 03:25 AM
There is no out of the box way to do this.
If you want, you could run a business rule on the incident task with every update, update the parent task.
Example, the condition could be current.work_notes.changes()
Then the code would be:
var gr = new GlideRecord('incident');
gr.addQuery('sys_id', current.parent);
gr.setLimit(1);
gr.query();
if (gr.next()) {
gr.work_notes = current.work_notes;
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 03:25 AM
There is no out of the box way to do this.
If you want, you could run a business rule on the incident task with every update, update the parent task.
Example, the condition could be current.work_notes.changes()
Then the code would be:
var gr = new GlideRecord('incident');
gr.addQuery('sys_id', current.parent);
gr.setLimit(1);
gr.query();
if (gr.next()) {
gr.work_notes = current.work_notes;
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2017 02:04 PM
Thanks for the response I will be testing this in our dev environment and verify that it works for us.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2017 04:25 AM
Create a before update business rule on incident_task table.
Add this script
var updateIncident = current.incident.getRefRecord();
updateIncident.work_notes = current.work_notes;
updateIncident.update();