How to add clickable hyperlink in the worknotes/ comments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
I have a requirement.
In the Work Notes or Comments field, if a user enters any URL or website link, it should automatically appear as a clickable hyperlink.
This requirement should apply to any record type, such as Incident, Problem, and others.
Sometimes users may enter descriptive text along with the URL. In such cases, only the URL portion should be identified and rendered as a clickable hyperlink.
The URL can belong to any website, such as Workday, Jira, or any other external or internal application.
Need help in this please.
Thanks in advance 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi mounika7675
Update worknote/comments for your ticket as follows to make your worknote/comment hyperlink.
current.work_notes = 'Incident [code]<a href="'+gs.getProperty('glide.servlet.uri')+'nav_to.do?uri=incident.do?sys_id='+sysID+'" target="_blank">INC_number</a>[/code] has been updated.';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
As mentioned the url could be anything, not just limited to servicenow
This doesn't serve the purpose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
work notes/comments are journal fields so not possible to add hyperlink directly
but with script you can add link but it's difficult to identify the URL portion
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader

