How to provide hyperlink associated with text.

pooja.mahamuni January 21, 2020

I am creating an issue in JIRA from servicenow. I want to send link associated with text in description field as below example.

e.g NUM00001 

Above number should be clickable and it should open Servicenow record.

But I am facing problem with sending link with that number.

I referred 

[Link Text|URL]

But the problem is I am not able to send Link Text dynamically. Is there any way to do that.

 

I am sending Object from script is

 

var jiraIssue = { 'fields':{
'project':{
'key': projectKey,
},
'components':[
{
'name': componentName,
}
],
'summary': title,
'priority': {
'id': priority,
},
"description": "'['+descriptionValue+'|'+https://www.google.com]",

// '[' descriptionValue|https://' + gs.getProperty('instance_name', '') + '.service-now.com/nav_to.do?uri=em_alert.do?sys_id=d8c9ec211b377f80bba4fdd6cc4bcba3]',
'issuetype': {
'id': issueTypeId,
},
}
};

1 answer

0 votes
Payne
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2020

Not sure about your concatenation and mixture of single and double quotes. Perhaps try this: 

"description": "["+descriptionValue+"|"+"https://www.google.com"+"]",

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events