- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 02:32 PM
Hi,
I have added a script below to add Work Notes to RITMs.
var comment = 'Please follow the instructions on Connect: https://community.servicenow.com';
var req = new GlideRecord('sc_req_item');
req.addQuery('sys_id', ritmSysId);
req.query();
while(req.next()){
req.comments = (comment);
req.update();
}
This code resulted in a comment that shows hyperlink in Service Portal, but not in "Comment Added" email notification.
I have then tried the below script:
...
req.comments = ('[code]<a href="https://connect.fg.rbc.com/docs/DOC-111720">' + linkName + '</a>[/code]');
req.update();
...
Which then resulted in a hyperlink in "Comment Added" email notification, and a raw code line (e.g. [code]..[/code]) in Service Portal's RITM Ticket form.
-> Similar to the screenshot:
Would like to know if there is a way to display a hyperlink properly in both Service Portal and ServiceNow view of the RITM?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2020 07:03 PM
This code works for me both in Portal and console view. Used BR
current.work_notes =' [code]<a href="https://www.servicenow.com">ServiceNow.com</a>[/code]';
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2021 12:56 AM
There is more information here: Formatting within Journal fields using HTML & [code]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 12:27 AM