Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to provide hyperlink associated with text.

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 Community Leader Jan 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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you