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.
| Type | What happens |
|---|---|
* text, then Tab, then 1. text | Nesting 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
# listPut 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
# listSent to Jira Cloud on .
Wiki markup (API v2)
* a
* bulleted
*# with
*# nested
*# numbered
* listPut 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
* listSent 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
*# n1Sent to Jira Cloud on .
Wiki markup (API v2)
* some
* bullet
** indented
** bullets
* pointsCompare 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
* pointsSent 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.