Home/Jira formatting reference
Jira text formatting
Underline in Jira: +inserted+ in wiki markup and ADF
Plus signs around a word make it inserted text in Jira wiki markup. The wiki help calls the effect inserted, the rendered element is ins, and Jira Cloud stores the ADF underline mark. The Markdown table in the Atlassian documentation has no underline syntax, only the Cmd/Ctrl+U shortcut.
Wiki markup
+inserted+
Stored as ADF (REST API v3)
The ADF document Jira Cloud stores for +inserted+:
{
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "inserted",
"marks": [
{
"type": "underline"
}
]
}
]
}
]
}
Examples
Wiki markup (API v2)
+inserted+The basic form, rendered as an ins element.
Rendered by Jira (HTML)
<p><ins>inserted</ins></p>Back to wiki after the round trip
+inserted+Sent to Jira Cloud on .
Wiki markup (API v2)
C++ and +plus+ wordPlus signs in normal text next to a real inserted word. Only the marked word is underlined.
Rendered by Jira (HTML)
<p>C++ and <ins>plus</ins> word</p>Back to wiki after the round trip
C++ and +plus+ wordSent to Jira Cloud on .
Wiki markup (API v2)
??cite?? and +ins+ and ^sup^ in one lineSeveral effects in one line, to check that an inserted word does not disturb its neighbours.
Rendered by Jira (HTML)
<p><cite>cite</cite> and <ins>ins</ins> and <sup>sup</sup> in one line</p>Back to wiki after the round trip
??cite?? and +ins+ and ^sup^ in one lineSent to Jira Cloud on .
ADF (API v3)
{"content": [{"content": [{"marks": [{"type": "strong"}], "text": "bold", "type": "text"}, {"text": " ", "type": "text"}, {"marks": [{"type": "em"}], "text": "ital", "type": "text"}, {"text": " ", "type": "text"}, {"marks": [{"type": "underline"}], "text": "u", "type": "text"}, {"text": " ", "type": "text"}, {"marks": [{"type": "strike"}], "text": "s", "type": "text"}, {"text": " ", "type": "text"}, {"marks": [{"type": "code"}], "text": "c", "type": "text"}], "type": "paragraph"}], "type": "doc", "version": 1}Sent as ADF through v3: the five basic marks side by side. The v2 wiki shows how each one is written.
Rendered by Jira (HTML)
<p><b>bold</b> <em>ital</em> <ins>u</ins> <del>s</del> <tt>c</tt></p>Back to wiki after the round trip
*bold* _ital_ +u+ -s- {{c}}Sent to Jira Cloud on .
What changes in conversion
- Wiki
+text+and the ADF underline mark are the same thing in both directions, and the text round-trips unchanged. - The wiki name (inserted) and the ADF name (underline) differ, but the stored result is the same. An underline mark sent through v3 comes back through v2 as
+u+. - There is no Markdown syntax for underline in the Atlassian documentation, so an underline cannot be typed as Markdown.
Pitfalls
- Inserted and underline are the same effect under two names. Do not expect a separate style for each.
- Plus signs in normal prose, such as
C++, are not affected as long as there is no matching pair around a word. - The same two-sided rule applies as for other effects: keep the closing plus right after the last character.
Related
- *strong* (bold)
- -strikethrough-
- _emphasis_ (italic)
- Combining and nesting text effects
- {color} text color