How to prevent auto linking in JIRA markup?

Borek Bernard September 8, 2015

I want to write an example URL in a JIRA issue description, like

 

... use the site {{http://localhost/test}} ...

but this gets rendered as a clickable link (even though it is wrapped in the inline code markup). How to get rid of the auto-linking?

5 answers

6 votes
Rich McNeary March 14, 2018

In case anyone gets here through a search - you can prevent a link from being active by using the HTML unicode entity for a colon: :

So the enter this:

  http://localhost/

and see

  http://localhost/

(Hopefully this answer will be rendered correctly 🤞)

0 votes
Marcel Kleinlütke May 14, 2019

I use { and } so the Link is not set but the brackets are shown.

0 votes
len kirby October 12, 2016

Did you ever find a semi-solution for this?

Our issue is similar. We need to disable the key auto-linking (JIRA-123) in our release management lists where our release package filenames match the JIRA ticket IDs for trace-ability.

Our workarounds are:

  • Set the renderer to 'Simple text', and live with the renderer still adding links to the filename.
  • Enable 'wiki syntax' rendering, and have the issue auto-fill the status (bad). Further with 'wiki syntax', we tried using noformat and code brackets, but we are forced into a narrow vertical scrollbar, and users can not see the entire list at a glance (and have missed important contents sometimes!!)

I wonder if they will ever create a simple text renderer?

 

0 votes
MattS
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.
September 9, 2015

Make the text field use the text renderer in a field configuration scheme

Borek Bernard September 9, 2015

I need the behavior in the description field. So I'm looking for a syntax trick to achieve that, not a chance in configuration.

0 votes
Christian Czaia _Decadis AG_
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.
September 8, 2015

Not pretty nice but you can wrap it in a {noformat}http://www.....{noformat} macro

It will then look like 

www.google.com
Borek Bernard September 8, 2015

The noformat macro isn't inline so I cannot use it. (It will create a block element around the URL.) Another solution? Is there like an inline noformat macro? Didn't find anything..

Christian Czaia _Decadis AG_
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.
September 8, 2015

Mmmh. The only thing I can come up with is {http://www.google.com}. Mask it in some form...

Christian Czaia _Decadis AG_
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.
September 8, 2015

Well, did work on my local instance of JIRA :-)

Borek Bernard September 8, 2015

Is there like an universal escape character that isn't rendered that would "break" the URL so that JIRA doesn't consider it as one? I tried `{{http\://localhost/example}}` but the backslash is rendered.

Christian Czaia _Decadis AG_
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.
September 8, 2015

Sorry but I'm out of ideas. I've tried different backslash combinations / positions and none works

Borek Bernard September 8, 2015

There are always ugly hacks like finding a Unicode character that looks like a double colon but is not one but one shouldn't really need to use it. Inline noformat is a common solution in most wiki dialects so maybe JIRA will add it one day :)

Suggest an answer

Log in or Sign up to answer