The CreatorCon Call for Content is officially open! Get started here.

Additional comments(customer visible) copy to RITM

John Vo1
Tera Guru

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:

find_real_file.png

What do I need to add to the script so additional comments (customer visible) gets copied up to RITM as well?

1 ACCEPTED SOLUTION

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



Screen Shot 2017-07-23 at 10.11.23 PM.png



Screen Shot 2017-07-23 at 10.11.30 PM.png



Screen Shot 2017-07-23 at 10.11.44 PM.png



Screen Shot 2017-07-23 at 10.11.56 PM.png


View solution in original post

22 REPLIES 22

I did that and it didn't copy to RITM.   This is what I want to copy.   If I update the top additional comments it will get copied to RITM


find_real_file.png


find_real_file.png


Hey John,



If you right click additional comments (customer visible) one what name its shows? Also can you make a different view or modify this one to just have additional comments and remove the one you are dot walking from request item and see how your form looks like. Also on which build you are on?



Shruti


This is what happens when I right click additional comments customer visible.


find_real_file.png



we are currently on Instanbul


Hmm can you remove other additional comments and comments and work_notes you are dot walking