Going Stellar

Home/Jira formatting reference

Jira text formatting

Citation in Jira: ??citation?? in wiki markup and ADF

Two question marks on each side of a phrase mark it as a citation in Jira wiki markup. The renderer outputs a cite element. ADF has no citation mark, so Jira Cloud stores the text with the em (italic) mark and a leading dash character.

Wiki markup

??citation??

Stored as ADF (REST API v3)

The ADF document Jira Cloud stores for ??citation??:

{
 "type": "doc",
 "version": 1,
 "content": [
  {
   "type": "paragraph",
   "content": [
    {
     "type": "text",
     "text": "\u2014 citation",
     "marks": [
      {
       "type": "em"
      }
     ]
    }
   ]
  }
 ]
}

Examples

Wiki markup (API v2)

??citation??

The basic form, rendered as a cite element.

Rendered by Jira (HTML)

<p><cite>citation</cite></p>

Back to wiki after the round trip

??citation??

Sent to Jira Cloud on .

Wiki markup (API v2)

??cite?? and +ins+ and ^sup^ in one line

A citation next to other effects. The stored ADF carries the dash only on the citation text.

Rendered by Jira (HTML)

<p><cite>cite</cite> and <ins>ins</ins> and <sup>sup</sup> in one line</p>

Back to wiki after the round trip

??cite?? and +ins+ and ^sup^ in one line

Sent to Jira Cloud on .

Wiki markup (API v2)

_emphasis_

Plain italic for comparison: same ADF mark, but an em element and no leading dash.

Rendered by Jira (HTML)

<p><em>emphasis</em></p>

Back to wiki after the round trip

_emphasis_

Sent to Jira Cloud on .

What changes in conversion

  • ADF has no citation mark in the Atlassian documentation. The stored form of ??citation?? is a text node with an em mark, whose text begins with a dash (U+2014) and a space.
  • Sent back through v3 and read as wiki through v2, that stored ADF came back as ??citation?? and rendered as a cite element again. In the stored ADF the dash is part of the text.
  • Anything that reads the ADF directly, such as an automation rule or an API client, sees the dash in the text. Strip it if you need the bare phrase.

Pitfalls

  • Question marks are common in prose. A pair of double question marks around words in a comment will turn the words into a citation.
  • The dash is part of the stored text, so a client that reads ADF sees it.

Sources

  1. Text Formatting Notation Help (Jira, in-product help)
  2. Atlassian Document Format: document structure (Jira Cloud platform)

Markdown version · All formatting pages