Going Stellar

Home/Jira formatting reference

Jira text formatting

Bullet lists in Jira: wiki markup, Markdown and ADF

A bullet list in wiki markup is one line per item that starts with * and a space; more stars go one level deeper. The Jira Cloud editor stores the list as an ADF bulletList, and the REST API v2 writes it back with stars.

Wiki markup

* item
** deeper item
- item (dash form)

Markdown shortcuts in the editor

Per the Atlassian documentation, not tested.

TypeWhat happens
* text or - textStarts an unordered list in the editor, per the Atlassian documentation. Use Tab to indent and Shift + Tab to outdent.
** textThe documentation notes that ** does not convert to a nested list in the editor.

Stored as ADF (REST API v3)

The ADF document Jira Cloud stores for * some * bullet ** indented ** bullets * points:

{
 "type": "doc",
 "version": 1,
 "content": [
  {
   "type": "bulletList",
   "content": [
    {
     "type": "listItem",
     "content": [
      {
       "type": "paragraph",
       "content": [
        {
         "type": "text",
         "text": "some"
        }
       ]
      }
     ]
    },
    {
     "type": "listItem",
     "content": [
      {
       "type": "paragraph",
       "content": [
        {
         "type": "text",
         "text": "bullet"
        }
       ]
      },
      {
       "type": "bulletList",
       "content": [
        {
         "type": "listItem",
         "content": [
          {
           "type": "paragraph",
           "content": [
            {
             "type": "text",
             "text": "indented"
            }
           ]
          }
         ]
        },
        {
         "type": "listItem",
         "content": [
          {
           "type": "paragraph",
           "content": [
            {
             "type": "text",
             "text": "bullets"
            }
           ]
          }
         ]
        }
       ]
      }
     ]
    },
    {
     "type": "listItem",
     "content": [
      {
       "type": "paragraph",
       "content": [
        {
         "type": "text",
         "text": "points"
        }
       ]
      }
     ]
    }
   ]
  }
 ]
}

Examples

Wiki markup (API v2)

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

Write a two-level list in one comment. Each extra star adds one level of nesting.

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 .

Wiki markup (API v2)

- different
- bullet
- types

Use dashes instead of stars. Jira draws square bullets, but the saved list is the same bulletList.

Rendered by Jira (HTML)

<ul class="alternate" type="square">
	<li>different</li>
	<li>bullet</li>
	<li>types</li>
</ul>

Back to wiki after the round trip

* different
* bullet
* types

Sent to Jira Cloud on .

Wiki markup (API v2)

* item with *bold* and {{code}}

Format text inside an item. Bold and monospace marks live inside the item paragraph.

Rendered by Jira (HTML)

<ul>
	<li>item with <b>bold</b> and <tt>code</tt></li>
</ul>

Back to wiki after the round trip

* item with *bold* and {{code}}

Sent to Jira Cloud on .

Wiki markup (API v2)

* first
continued line
* second

Add a second line to an item without starting a new item.

Rendered by Jira (HTML)

<ul>
	<li>first<br/>
continued line</li>
	<li>second</li>
</ul>

Back to wiki after the round trip

* first
continued line
* second

Sent to Jira Cloud on .

Wiki markup (API v2)

* item

* after blank line

See what a blank line does between items.

Rendered by Jira (HTML)

<ul>
	<li>item</li>
</ul>


<ul>
	<li>after blank line</li>
</ul>

Back to wiki after the round trip

* item

* after blank line

Sent to Jira Cloud on .

Wiki markup (API v2)

*no space

Check what happens when the space after the star is missing.

Rendered by Jira (HTML)

<p>*no space</p>

Back to wiki after the round trip

*no space

Sent to Jira Cloud on .

Wiki markup (API v2)

  * indented star

Check whether leading spaces stop a line from being a list item.

Rendered by Jira (HTML)

<ul>
	<li>indented star</li>
</ul>

Back to wiki after the round trip

* indented star

Sent to Jira Cloud on .

What changes in conversion

  • A star list survives wiki, then ADF, then wiki unchanged, including nested levels.
  • A dash list is stored as an ordinary bulletList. When the stored ADF is read back through v2 the dashes become stars, and the square bullet style is gone.
  • A line that continues an item without a marker becomes a hardBreak inside the same item and comes back as a plain continuation line.
  • A blank line between two items ends the list. Jira stores two separate bulletList nodes, and the blank line stays when the text is read back as wiki.
  • Leading spaces before the star are accepted when parsing, but they are not written back: the converted text starts at column one.

Pitfalls

  • A star without a following space (*no space) stays plain text.
  • The Jira help says list markers must be in the first column. A line with two leading spaces before the star still became a list item when sent through the API, but write the marker at column one.
  • Markdown nesting with ** is not the wiki rule: in the editor, indent with Tab instead.

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