- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2016 11:42 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2016 12:07 AM
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();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2016 11:45 PM
Use After Update BR to copy the content in Worknotes and query the sc_req_item table to find the associated RITM with the use of Requested Item field in Task level and update the RITM worknotes with the content you have copied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2016 11:58 PM
i m little new to this. can u tell me the code i have to write
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2016 12:07 AM
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();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2016 01:55 AM
Thanks that worked.. i am not able to find the Correct Answer button to mark your answer correct and closed,, but one more thing how do I restrict for only two specific catalog item named as test1 and test2 only