Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JMWE - URL hyperlink

Jeanne Howe
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.
April 4, 2019

We are using JMWE for JIRA Cloud to create issues on transition. For one of my issues, we wanted to add a hyperlink in the Description to point to a Confluence page. In JMWE we have formatted the URL as shown in the Nunjucks documentation

{{ "foo http://www.example.com/ bar" | urlize | safe }}

 My hope was that the URL would be displayed as a hyperlink "foo bar"

Instead it displays the full URL twice, once as text and once as a hyperlink with the full html code shown

foo <a href="http://www.example.com/">http://www.example.com/</a> bar

Is there any way to format the URL so that it displays in the Description field as a titled hyperlink? (using the example above, I would like to see "foo bar" as the hyperlink) 

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
April 5, 2019

Hi Jeanne,

Since you're writing into the Description field which, by default, is "wiki-rendered", you need to pass wiki markup. In the case of URLs, the syntax is:

[Text|url]

Which in your example would be:

[Foo bar|http://www.example.com]

Suggest an answer

Log in or Sign up to answer