- 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
10-11-2017 10:06 AM
on the conditions for your br do you have any condition specifying that the request_item is not empty??
it sounds like your issue is that your br is running for EVERY task not just those that have a request item... although with the code you have i don't see how it should cause much slowness...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 12:59 PM
can we get to which task comments/worknotes has added
as few ritms have more than one task and it is difficult to find it out
is it possible to show who added
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2017 09:53 PM
I guess you can print the request_item number in your comments or worknotes.
Shruti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2017 12:38 PM
I have a big problem with how comments work in ServiceNow. If someone as an ITIL user comments on a TASK it should automatically flow through any other TASK, RITM, and REQ. Same from a customer perspective...if a customer comments, it should flow to every TASK, RITM, and REQ.
You shouldn't have to create Business Rules to do this although we had to do it too. Commenting and attachments are handled pretty terribly natively by ServiceNow.
Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2017 02:26 PM
keep in mind you will NOT see additonal comments in the additional comments block of the item.. ONLY in the activity stream.. .<it is a journal entry field> also be aware most people already have a BR to copy the add comments from the item into the task.. it is VERY easy to form a loop here where the task updates the items add comments .. the item then updates the task add comments.. which updates the item.. etc.