Going Stellar

Home/Jira formatting reference

Jira text formatting

External links in Jira: [alias|url] in wiki, Markdown, ADF

An external link is [alias|url] in wiki markup, [url] for the address as text, or a bare URL that Jira links on its own. ADF stores it as a link mark on text. The Markdown form [text](url) is an editor shortcut only.

Wiki markup

[alias|https://example.com]
[https://example.com]
https://example.com
[alias|https://example.com|tooltip]

Markdown shortcuts in the editor

Per the Atlassian documentation, not tested.

TypeWhat happens
[link](www.atlassian.com)Converts to a link as you type in the editor, per the Atlassian documentation.

Stored as ADF (REST API v3)

The ADF document Jira Cloud stores for [Atlassian|http://atlassian.com]:

{
 "type": "doc",
 "version": 1,
 "content": [
  {
   "type": "paragraph",
   "content": [
    {
     "type": "text",
     "text": "Atlassian",
     "marks": [
      {
       "type": "link",
       "attrs": {
        "href": "http://atlassian.com"
       }
      }
     ]
    }
   ]
  }
 ]
}

Examples

Wiki markup (API v2)

[Atlassian|http://atlassian.com]

Show a readable word instead of the address.

Rendered by Jira (HTML)

<p><a href="http://atlassian.com" class="external-link" rel="nofollow noreferrer">Atlassian</a></p>

Back to wiki after the round trip

[Atlassian|http://atlassian.com]

Sent to Jira Cloud on .

Wiki markup (API v2)

[http://jira.atlassian.com]

Link an address without an alias.

Rendered by Jira (HTML)

<p><a href="http://jira.atlassian.com" class="external-link" rel="nofollow noreferrer">http://jira.atlassian.com</a></p>

Back to wiki after the round trip

[http://jira.atlassian.com|http://jira.atlassian.com]

Sent to Jira Cloud on .

Wiki markup (API v2)

Visit https://example.com.

Paste a URL at the end of a sentence.

Rendered by Jira (HTML)

<p>Visit <a href="https://example.com" class="external-link" rel="nofollow noreferrer">https://example.com</a>.</p>

Back to wiki after the round trip

Visit [https://example.com|https://example.com/].

Sent to Jira Cloud on .

Wiki markup (API v2)

[Example site|https://example.com|Tooltip text]

Add a tooltip with a third field.

Rendered by Jira (HTML)

<p><a href="https://example.com" title="Tooltip text" class="external-link" rel="nofollow noreferrer">Example site</a></p>

Back to wiki after the round trip

[Example site|https://example.com]

Sent to Jira Cloud on .

Wiki markup (API v2)

[*Bold link*|https://example.com]

Format the link text.

Rendered by Jira (HTML)

<p><a href="https://example.com" class="external-link" rel="nofollow noreferrer"><b>Bold link</b></a></p>

Back to wiki after the round trip

[*Bold link*|https://example.com]

Sent to Jira Cloud on .

Wiki markup (API v2)

[link](https://example.com)

Send the Markdown link form as wiki text.

Rendered by Jira (HTML)

<p><span class="error">&#91;link&#93;</span>(<a href="https://example.com" class="external-link" rel="nofollow noreferrer">https://example.com</a>)</p>

Back to wiki after the round trip

[link]([https://example.com|https://example.com/])

Sent to Jira Cloud on .

ADF (API v3)

{"content": [{"content": [{"marks": [{"attrs": {"href": "https://example.com", "title": "Tip"}, "type": "link"}], "text": "link", "type": "text"}], "type": "paragraph"}], "type": "doc", "version": 1}

Store a title on a link in ADF and read it back through v2.

Rendered by Jira (HTML)

<p><a href="https://example.com" class="external-link" rel="nofollow noreferrer">link</a></p>

Back to wiki after the round trip

[link|https://example.com]

Sent to Jira Cloud on .

What changes in conversion

  • An alias link survives wiki, then ADF, then wiki unchanged. A link without an alias comes back as [url|url], with the address repeated as the alias.
  • The third field (tooltip) is shown as a title in the rendered HTML but is not kept in ADF, so a wiki read of the stored ADF returns [alias|url].
  • ADF link titles are kept by v3 but ignored by v2: the title is missing from the HTML and the wiki text.
  • A bare URL becomes a link mark in ADF. The stored href for a bare address with no path gets a trailing slash, and the sentence period stays outside the link.
  • The Markdown form [text](url) is not parsed from wiki input: the text in brackets is an error span and only the address is linked.

Pitfalls

  • Brackets around a word with no pipe, such as [pagetitle], are read as a page link and rendered as an error. Escape literal brackets as \[ \].
  • Angle brackets around an address are kept as text: <https://example.com> links the address and leaves the brackets.
  • Do not count on a tooltip surviving a save through the new editor.

Questions and answers

Does Jira link a plain URL without brackets?

Yes. A bare address is linked when the text is rendered, and ADF stores it as a link mark.

Sources

  1. Text Formatting Notation Help (Jira, in-product help)
  2. Markdown and keyboard shortcuts (Atlassian Support, Jira Cloud)
  3. Atlassian Document Format: document structure (Jira Cloud platform)

Markdown version · All formatting pages