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,
},
}
};
Not sure about your concatenation and mixture of single and double quotes. Perhaps try this:
"description": "["+descriptionValue+"|"+"https://www.google.com"+"]",
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.