how to copy work notes from TASK to RITM while closing task

Abhinab Achary1
Tera Guru

Hi All,

I have a catalog item   what i want is when i TASK i closed complete the user enters the work notes.. I want that the work notes entered while closing a TASK should get copied to its related RITM while closure

How can this be achieved.

Regards,

Abhinab

1 ACCEPTED SOLUTION

Before Update BR in Task table


Condition: current.work_notes.changes()


Script:


var gr = new GlideRecord('sc_req_item');


gr.get(current.request_item);


gr.work_notes = current.work_notes;


gr.update();


View solution in original post

5 REPLIES 5

You may find the Correct Answer Link near each and every message of mine.


Yes, in the condition you can include current.request_item.cat_item.getDisplayValue() == "test1".



Please mark the question as correct if it resolved your issue.