Going Stellar

Home/Jira formatting reference

Jira text formatting

Status lozenge in Jira: ADF status node and wiki fallback

A status lozenge is a small coloured label such as IN PROGRESS. It exists only in ADF, as an inline status node with a text and a colour. Wiki markup has no {status} macro that Jira Cloud renders; v2 reads the node as coloured bold text in brackets.

Wiki markup

{status}...{status}
{color:#00B8D9}*[ IN PROGRESS ]*{color}

Stored as ADF (REST API v3)

The ADF document Jira Cloud stores for ADF:{"content": [{"content": [{"attrs": {"color": "blue", "text": "IN PROGRESS"}, "type": "status"}], "type": "paragraph"}], "type": "doc", "version": 1}:

{
 "type": "doc",
 "version": 1,
 "content": [
  {
   "type": "paragraph",
   "content": [
    {
     "type": "status",
     "attrs": {
      "text": "IN PROGRESS",
      "color": "blue"
     }
    }
   ]
  }
 ]
}

Examples

Wiki markup (API v2)

{status}DONE{status}

Tries the macro in wiki. The text is shown as typed and no lozenge appears.

Rendered by Jira (HTML)

{status}DONE{status}

Back to wiki after the round trip

{status}DONE{status}

Sent to Jira Cloud on .

ADF (API v3)

{"content": [{"content": [{"attrs": {"color": "blue", "text": "IN PROGRESS"}, "type": "status"}], "type": "paragraph"}], "type": "doc", "version": 1}

Sends a blue lozenge through v3. The v2 view is bold coloured text with spaces inside square brackets.

Rendered by Jira (HTML)

<p><font color="#00B8D9"><b>[ IN PROGRESS ]</b></font></p>

Back to wiki after the round trip

{color:#00B8D9}*[ IN PROGRESS ]*{color}

Sent to Jira Cloud on .

Wiki markup (API v2)

{color:#ff5630}hex red{color}

A wiki substitute: coloured words with {color}. It survives the round trip, but it is plain coloured text and not a lozenge.

Rendered by Jira (HTML)

<p><font color="#ff5630">hex red</font></p>

Back to wiki after the round trip

{color:#ff5630}hex red{color}

Sent to Jira Cloud on .

What changes in conversion

  • The status node is written to wiki as {color:#00B8D9}*[ IN PROGRESS ]*{color}. Blue became #00B8D9 in the one colour probed. Other named colours were not tested.
  • Reading that wiki back into ADF would produce a bold, coloured text run, not a status node. The lozenge cannot be restored from wiki.
  • Typing {status}DONE{status} as wiki stores literal text, which a later ADF consumer sees as text and not as a lozenge.

Pitfalls

  • A lozenge made through v3 and edited by a v2 client is flattened to coloured text the first time it is written back.
  • The lozenge is not a Jira workflow status. It is a label inside rich text and changes nothing on the work item.
  • Per the documentation, the color attribute takes a named colour or a six-digit hex value. Check the colour you send, as only blue was probed.

Sources

  1. Text Formatting Notation Help (Jira, in-product help)
  2. ADF node: status (Jira Cloud platform)

Markdown version · All formatting pages