We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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 🙂 

6 REPLIES 6

Tanushree Maiti
Giga 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 

You formed the url with the sample tag as per your requirement.

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

Ankur Bawiskar
Tera Patron

@mounika7675 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader