How to add clickable hyperlink in the worknotes/ comments

mounika7675
Tera Contributor

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 🙂 

2 REPLIES 2

Tanushree Maiti
Mega Sage

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.';

 

 Ref: How to create a working links in the comments or worknotes in the activity stream. - Support and Tro...

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

@Tanushree Maiti 

As mentioned the url could be anything, not just limited to servicenow 

 

This doesn't serve the purpose