Going Stellar

Home/Jira formatting reference

Jira text formatting

Block quotes in Jira: bq. and {quote} wiki, ADF blockquote

A block quote marks quoted text as a separate indented block. Wiki markup has two forms: bq. for one paragraph and {quote}...{quote} for more. The Cloud editor creates it from a > at the start of a line (per the Atlassian documentation), and ADF stores it as a blockquote node. Both wiki forms end up as the same ADF node.

Wiki markup

bq. Some block quoted text
{quote}
here is quotable
content to be quoted
{quote}

Markdown shortcuts in the editor

Per the Atlassian documentation, not tested.

TypeWhat happens
>Converts to a block quote as you type, per the Atlassian documentation.
Cmd/Ctrl + Shift + 9Keyboard shortcut for Quote, per the Atlassian documentation.

Stored as ADF (REST API v3)

The ADF document Jira Cloud stores for ADF:{"content": [{"content": [{"content": [{"text": "quote", "type": "text"}], "type": "paragraph"}, {"content": [{"text": "second paragraph", "type": "text"}], "type": "paragraph"}], "type": "blockquote"}], "type": "doc", "version": 1}:

{
 "type": "doc",
 "version": 1,
 "content": [
  {
   "type": "blockquote",
   "content": [
    {
     "type": "paragraph",
     "content": [
      {
       "type": "text",
       "text": "quote"
      }
     ]
    },
    {
     "type": "paragraph",
     "content": [
      {
       "type": "text",
       "text": "second paragraph"
      }
     ]
    }
   ]
  }
 ]
}

Examples

Wiki markup (API v2)

bq. Some block quoted text

Quote one paragraph. Jira stores it as a blockquote node holding a paragraph.

Rendered by Jira (HTML)

<blockquote><p>Some block quoted text</p></blockquote>

Back to wiki after the round trip

{quote}Some block quoted text{quote}

Sent to Jira Cloud on .

Wiki markup (API v2)

{quote}
here is quotable
content to be quoted
{quote}

Quote several lines. A single line break inside the macro becomes a hard break, not a new paragraph.

Rendered by Jira (HTML)

<blockquote>
<p>here is quotable<br/>
content to be quoted</p></blockquote>

Back to wiki after the round trip

{quote}here is quotable
content to be quoted{quote}

Sent to Jira Cloud on .

Wiki markup (API v2)

{quote}one line quote{quote}

The macro also works on a single line, with both tags on it.

Rendered by Jira (HTML)

<blockquote><p>one line quote</p></blockquote>

Back to wiki after the round trip

{quote}one line quote{quote}

Sent to Jira Cloud on .

Wiki markup (API v2)

{quote}
* list in quote
{quote}

A list inside a quote is kept as a list inside the blockquote node.

Rendered by Jira (HTML)

<blockquote>
<ul>
	<li>list in quote</li>
</ul>
</blockquote>

Back to wiki after the round trip

{quote}* list in quote{quote}

Sent to Jira Cloud on .

ADF (API v3)

{"content": [{"content": [{"content": [{"text": "quote", "type": "text"}], "type": "paragraph"}, {"content": [{"text": "second paragraph", "type": "text"}], "type": "paragraph"}], "type": "blockquote"}], "type": "doc", "version": 1}

Two paragraphs inside one quote, written directly as ADF. Wiki markup reads it back with a blank line between them.

Rendered by Jira (HTML)

<blockquote><p>quote</p>

<p>second paragraph</p></blockquote>

Back to wiki after the round trip

{quote}quote

second paragraph{quote}

Sent to Jira Cloud on .

Wiki markup (API v2)

> markdown quote

A Markdown quote marker sent as wiki input is plain text with a visible > sign.

Rendered by Jira (HTML)

<p>&gt; markdown quote</p>

Back to wiki after the round trip

> markdown quote

Sent to Jira Cloud on .

What changes in conversion

  • bq. and {quote} produce the identical blockquote node. After the ADF round trip both come back as {quote}text{quote}, so bq. is never returned.
  • The read-back puts the text directly after the opening tag and the closing tag directly after the text, with no line breaks around them.
  • A line break inside a quote written in wiki markup is stored as a hard break. A real second paragraph only exists when the quote is written as ADF with two paragraph nodes.
  • Lists inside a quote are kept as a list in the stored ADF, and the wiki read-back writes the first marker right after {quote}.
  • A leading > is not converted when it arrives as wiki input. Markdown quotes need the editor.

Pitfalls

  • bq. only covers the paragraph it starts. Use {quote} for anything longer.
  • The ADF documentation lists the allowed children of blockquote as paragraph, lists, codeBlock and media. Headings or tables inside a quote are not allowed there.
  • Do not rely on bq. surviving an edit in the new editor. After a save through ADF the text is stored and read back as {quote}.

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