- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2017 10:14 AM
Currently I have a BR called Work notes to RITM. This will copy what was put in the task under work notes and pull that up to RITM.
Here is the script:
What do I need to add to the script so additional comments (customer visible) gets copied up to RITM as well?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2017 10:15 PM
Hi John,
Not sure of already got the answer, got some time to do some testing as I promised and here is the test it did:
Type: Business Rule
Table: sc_task
Parameters: Run: Before insert and update
Filter Conditions: Additional comments or work notes changes
Script:
cascadeComment();
function cascadeComment(){
var gr=new GlideRecord("sc_req_item");
gr.get(current.request_item);
gr.work_notes=current.work_notes;
gr.comments=current.comments;
gr.update();
}
And I can see comments and work_notes are updated in activity formatter. Try this and see if this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2017 03:48 PM
Yes I have a BR that does that but only for requested item.comments. So when users update that additional comments it will copy it to the RITM. But if you go to task and configure layout and just add additional comments and update it with notes it will NOT copy to RITM. That's what I need to copy to RITM.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2017 11:58 PM
Hi John Vo,
Good Day!
Do you want to update the additional comments in the task to the requested item?
If the above point is "Yes", then you can go with the below steps to update the same :
- 1. Write the BR after/update (you can write it for task table)
- 2. conditon : current.comments.changes()
- 3. Please find the below script in BR to update the additional comments in the RITM
var gr = new GlideRecord('sc_req_item');
- gr.addQuery('sys_id','current.request_item);/*pass the sys_id of ritm*/
- gr.query();
if(gr.next()){
- gr.comments = current.comments;
- gr.update();
}
Hope this will help to update the value of the Additional Comments in the RITM.
PS: Your feedback (Like, Helpful or Correct) helps community!
Thanks,
Priyanka R

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2017 12:23 AM
Hi John Vo,
Good Day!
Do you want to update the additional comments in the task to the requested item?
If the above point is "Yes", then you can go with the below steps to update the same :
1. Write the BR after/update (you can write it for task table)
2. conditon : current.comments.changes()
3. Please find the below script in BR to update the additional comments in the RITM
var gr = new GlideRecord('sc_req_item');
gr.addQuery('sys_id','current.request_item);/*pass the sys_id of ritm*/
gr.query();
if(gr.next()){
gr.comments = current.comments;/*update the additional comments in the RITM base on the task comments updated*/
gr.update();
}
Hope this will help to update the value of the Additional Comments in the RITM.
PS: Your feedback (Like, Helpful or Correct) helps community!
Thanks,
Priyanka R