- 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 10:17 AM
I guess just add, same how you are doing with work_notes:
gr.comments = current.comments;
before gr.update
Thanks
Shruti
If the reply was informational, please like, mark as helpful or mark as correct!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2017 10:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2017 10:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2017 10:51 AM