Add link clickable link to work notes of incident when incident created from case

Luke James
Tera Contributor

Hello All, 

 

I have a requirement where from a case when I create an incident from a case that it inserts into the work notes of the incident a clickable link to the case the Incident was created from. 

 

Anyone have the code or or know how I can do this? 

 

Kind Regards, 

 

Luke

1 REPLY 1

Kiranmai_KVL
Kilo Sage

Hello Luke,

 

You can insert hyperlink automatically using [code] [/code] tag & insert hyperlink in worknotes and comments.

For instance : You can add below snippet of code to the existing BR which is creating incident from case to include the 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 created.';

 

Please find similar question which was solved earlier : 

Using hyperlink in work notes 

add clickable link in work notes for incident record. 

How do I display a clickable URL in my work notes? Please do not use the example that uses [code]. 

 

Let me know if any of this was helpful.

 

Cheers,

Kiranmai Kattamuri