- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2020 01:57 AM
Hi All,
Just checking if anyone has implemented copying the rejections comments from Service Portal to the RITM. Rejection comments is being copied and working if the rejection is done in the native view. But when the approver rejects in the Service Portal view, its not working. I have just made the rejection comments mandatory in Service Portal following this blog and it is working perfectly. What's left is just how to copy the comments to the RITM.
Thanks in advance.
Regards,
Ramel
Solved! Go to Solution.
- Labels:
-
Service Portal

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2020 02:25 AM
Hi Ramel,
Did you try a business rule that runs after update on the Approval (sysapproval_approver) table once Approval is rejected that copies comments to the RITM.
(function executeRule(current, previous /*null when async*/ ) {
var v_gRITM = new GlideRecord('sc_req_item');
v_gRITM.addQuery('sys_id', current.sysapproval);
v_gRITM.query();
if (v_gRITM.next()) {
v_gRITM.comments = "Rejection Comments : " + current.comments.getJournalEntry(1);
v_gRITM.update();
}
})(current, previous);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2020 02:25 AM
Hi Ramel,
Did you try a business rule that runs after update on the Approval (sysapproval_approver) table once Approval is rejected that copies comments to the RITM.
(function executeRule(current, previous /*null when async*/ ) {
var v_gRITM = new GlideRecord('sc_req_item');
v_gRITM.addQuery('sys_id', current.sysapproval);
v_gRITM.query();
if (v_gRITM.next()) {
v_gRITM.comments = "Rejection Comments : " + current.comments.getJournalEntry(1);
v_gRITM.update();
}
})(current, previous);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2025 08:19 AM
Hi @Jaspal Singh ,
I have a different issue, when ritm is rejected with rejection comment , those comments are shown in RITM but not in sys_approval_approver table. In that case your code won't work. I need to copy those to sys_approval_approver records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2025 06:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2020 02:33 AM
Thanks Jaspal.