Going Stellar

Home/Jira formatting reference

Jira text formatting

Mixed bullet and numbered lists in Jira wiki and ADF

Combine the list characters to mix types: *# is a numbered item under a bullet, and #* is a bullet under a numbered item. In ADF each level is its own bulletList or orderedList inside a listItem.

Wiki markup

* bullet
*# numbered under a bullet
# numbered
#* bullet under a numbered item

Markdown shortcuts in the editor

Per the Atlassian documentation, not tested.

TypeWhat happens
* text, then Tab, then 1. textNesting in the editor is done with Tab, per the Atlassian documentation. The ** form does not convert to a nested list.

Stored as ADF (REST API v3)

The ADF document Jira Cloud stores for ADF:{"content": [{"content": [{"content": [{"content": [{"text": "a", "type": "text"}], "type": "paragraph"}, {"content": [{"content": [{"content": [{"text": "n1", "type": "text"}], "type": "paragraph"}], "type": "listItem"}], "type": "orderedList"}], "type": "listItem"}], "type": "bulletList"}], "type": "doc", "version": 1}:

{
 "type": "doc",
 "version": 1,
 "content": [
  {
   "type": "bulletList",
   "content": [
    {
     "type": "listItem",
     "content": [
      {
       "type": "paragraph",
       "content": [
        {
         "type": "text",
         "text": "a"
        }
       ]
      },
      {
       "type": "orderedList",
       "content": [
        {
         "type": "listItem",
         "content": [
          {
           "type": "paragraph",
           "content": [
            {
             "type": "text",
             "text": "n1"
            }
           ]
          }
         ]
        }
       ]
      }
     ]
    }
   ]
  }
 ]
}

Examples

Wiki markup (API v2)

# a
# numbered
#* with
#* nested
#* bullet
# list

Put bullets under a numbered step, such as the checks for one step of a procedure.

Rendered by Jira (HTML)

<ol>
	<li>a</li>
	<li>numbered
	<ul>
		<li>with</li>
		<li>nested</li>
		<li>bullet</li>
	</ul>
	</li>
	<li>list</li>
</ol>

Back to wiki after the round trip

# a
# numbered
#* with
#* nested
#* bullet
# list

Sent to Jira Cloud on .

Wiki markup (API v2)

* a
* bulleted
*# with
*# nested
*# numbered
* list

Put numbered steps under a bullet, such as ordered instructions for one topic.

Rendered by Jira (HTML)

<ul>
	<li>a</li>
	<li>bulleted
	<ol>
		<li>with</li>
		<li>nested</li>
		<li>numbered</li>
	</ol>
	</li>
	<li>list</li>
</ul>

Back to wiki after the round trip

* a
* bulleted
*# with
*# nested
*# numbered
* list

Sent to Jira Cloud on .

ADF (API v3)

{"content": [{"content": [{"content": [{"content": [{"text": "a", "type": "text"}], "type": "paragraph"}, {"content": [{"content": [{"content": [{"text": "n1", "type": "text"}], "type": "paragraph"}], "type": "listItem"}], "type": "orderedList"}], "type": "listItem"}], "type": "bulletList"}], "type": "doc", "version": 1}

Build a nested list from ADF and see how v2 spells the mixed levels.

Rendered by Jira (HTML)

<ul>
	<li>a
	<ol>
		<li>n1</li>
	</ol>
	</li>
</ul>

Back to wiki after the round trip

* a
*# n1

Sent to Jira Cloud on .

Wiki markup (API v2)

* some
* bullet
** indented
** bullets
* points

Compare with a pure bullet list: only the nested marker changes between mixed and pure lists.

Rendered by Jira (HTML)

<ul>
	<li>some</li>
	<li>bullet
	<ul>
		<li>indented</li>
		<li>bullets</li>
	</ul>
	</li>
	<li>points</li>
</ul>

Back to wiki after the round trip

* some
* bullet
** indented
** bullets
* points

Sent to Jira Cloud on .

What changes in conversion

  • Both mixed forms (#* and *#) survive wiki, then ADF, then wiki without changes.
  • ADF has no combined marker. Each level is a separate node, so the type of the parent list does not limit the type of the child list.
  • When v2 reads a bullet list that holds an orderedList, it writes the child items with the combined marker *#.

Pitfalls

  • The marker of every level must be written out on every line: #* for a bullet under a numbered item, not just *.
  • A blank line ends the whole list, so the next numbered item starts again at 1.

Sources

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

Markdown version · All formatting pages