clikable link at JIRA site from servicenow

fgh1
Tera Contributor

I want a clickable link from SN to JIRA while creating issue in the comment section

 I am adding code on service now  in script include side  as 

-------------------------------------------------------------------------------------------------------

var linkTemp='https://'+gs.getProperty('instance_name')+'.service-now.com';
var issueLink=Task.getValue('sys_updated_by') + ' : Issue created from ServiceNow Ticket'+'\n'+'[SN Record|'+linkTemp + '/'+Task.getValue('sys_class_name') + '.do?sys_id=' + Task.getValue('sys_id')+']';

It is not clickable.

 

fgh1_1-1704364098012.png

 

 

as in this format,  I was changing --->

[link name|http://example.com]

 

Thanks in advance!!!

 

----------------------------------------------------------------------------------------------------

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Hi @fgh1 

 

you have to build a real HTML link and enclose it that way:

 

 

[code]<a href="www.jira.com" target="_blank">Link text</a>[/code]

 

 

Also see: https://www.youtube.com/watch?v=bB76PWXWBXI 

 

Maik

HI,

the solution you have provided as it is from SN to JIRA. dynamic in a comment. I have tried it but still, it is not clickable. can you please check this?

 

fgh1_1-1704371138051.png

at jira end

fgh1_2-1704371181508.png

I think format is right. but it is not working

 

fgh1
Tera Contributor

No luck