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)
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]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.