Home/Jira formatting reference
Jira text formatting
{info}, {note}, {tip}, {warning} in Jira Cloud: ADF panels
Callout boxes in the new editor are ADF panel nodes with a panelType such as info, note, warning, error or success. The macro names {info}, {note}, {tip} and {warning} are not recognised when you send them as wiki through REST API v2: they appear as literal text. To get a coloured box through v2, use {panel}.
Wiki markup
{info}...{info}
{info:title=Heads up}...{info}
{note}...{note}
{tip}...{tip}
{warning}...{warning}
Stored as ADF (REST API v3)
The ADF document Jira Cloud stores for ADF:{"content": [{"attrs": {"panelType": "info"}, "content": [{"content": [{"text": "info panel", "type": "text"}], "type": "paragraph"}], "type": "panel"}], "type": "doc", "version": 1}:
{
"type": "doc",
"version": 1,
"content": [
{
"type": "panel",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "info panel"
}
]
}
],
"attrs": {
"panelType": "info"
}
}
]
}
Examples
Wiki markup (API v2)
{info:title=Heads up}
Info with title
{info}Tries the titled form. The braces and the title text show up in the comment as they were typed.
Rendered by Jira (HTML)
{info:title=Heads up}<br/>
Info with title{info}Back to wiki after the round trip
{info:title=Heads up}
Info with title
{info}Sent to Jira Cloud on .
Wiki markup (API v2)
{tip}
Tip text
{tip}The same literal result for {tip}. The stored ADF is one paragraph with line breaks.
Rendered by Jira (HTML)
{tip}<br/>
Tip text{tip}Back to wiki after the round trip
{tip}
Tip text
{tip}Sent to Jira Cloud on .
ADF (API v3)
{"content": [{"attrs": {"panelType": "info"}, "content": [{"content": [{"text": "info panel", "type": "text"}], "type": "paragraph"}], "type": "panel"}], "type": "doc", "version": 1}Sends an info panel through v3. The v2 render has a blue background and v2 writes it as a {panel} with that colour.
Rendered by Jira (HTML)
<div class="panel" style="background-color: #deebff;border-width: 1px;"><div class="panelContent" style="background-color: #deebff;">
<p>info panel</p>
</div></div>Back to wiki after the round trip
{panel:bgColor=#deebff}
info panel
{panel}Sent to Jira Cloud on .
ADF (API v3)
{"content": [{"attrs": {"panelType": "note"}, "content": [{"content": [{"text": "note panel", "type": "text"}], "type": "paragraph"}], "type": "panel"}], "type": "doc", "version": 1}Sends a note panel. It comes back as a purple-tinted panel.
Rendered by Jira (HTML)
<div class="panel" style="background-color: #eae6ff;border-width: 1px;"><div class="panelContent" style="background-color: #eae6ff;">
<p>note panel</p>
</div></div>Back to wiki after the round trip
{panel:bgColor=#eae6ff}
note panel
{panel}Sent to Jira Cloud on .
ADF (API v3)
{"content": [{"attrs": {"panelType": "tip"}, "content": [{"content": [{"text": "tip panel", "type": "text"}], "type": "paragraph"}], "type": "panel"}], "type": "doc", "version": 1}Sends a tip panel. It is accepted and stored, but v2 shows no background and writes bgColor with an empty value.
Rendered by Jira (HTML)
<div class="panel" style="border-width: 1px;"><div class="panelContent">
<p>tip panel</p>
</div></div>Back to wiki after the round trip
{panel:bgColor=}
tip panel
{panel}Sent to Jira Cloud on .
ADF (API v3)
{"content": [{"attrs": {"panelType": "warning"}, "content": [{"content": [{"text": "warning panel", "type": "text"}], "type": "paragraph"}], "type": "panel"}], "type": "doc", "version": 1}Sends a warning panel. It comes back as a yellow-tinted panel.
Rendered by Jira (HTML)
<div class="panel" style="background-color: #fffae6;border-width: 1px;"><div class="panelContent" style="background-color: #fffae6;">
<p>warning panel</p>
</div></div>Back to wiki after the round trip
{panel:bgColor=#fffae6}
warning panel
{panel}Sent to Jira Cloud on .
ADF (API v3)
{"content": [{"attrs": {"panelType": "success"}, "content": [{"content": [{"text": "success panel", "type": "text"}], "type": "paragraph"}], "type": "panel"}], "type": "doc", "version": 1}Sends a success panel. It comes back as a green-tinted panel.
Rendered by Jira (HTML)
<div class="panel" style="background-color: #e3fcef;border-width: 1px;"><div class="panelContent" style="background-color: #e3fcef;">
<p>success panel</p>
</div></div>Back to wiki after the round trip
{panel:bgColor=#e3fcef}
success panel
{panel}Sent to Jira Cloud on .
What changes in conversion
- {info}, {note}, {tip} and {warning} typed as wiki are stored as plain text in a paragraph, and written back unchanged. They never become panels.
- Panel types are written to wiki as a {panel} with a background colour: info #deebff, note #eae6ff, warning #fffae6, error #ffebe6, success #e3fcef. The type name itself is lost, so a note and a custom purple panel look alike.
- tip has no colour in the v2 output, and the wiki comes back with an empty bgColor. Converting it again does not restore the type.
Pitfalls
- If you paste a callout macro into a v2 comment, you get the macro text in the page. Switch to {panel} or send ADF.
- Panels made in the editor come back as {panel:bgColor=...} with no title or type. Treat the colour as the only signal.
- Do not build tooling that reads panelType from a wiki round trip. It is not there.
Related
- {panel} macro
- Macros that do not convert
- Expand (collapsible section)
- REST API v2 wiki markup vs v3 ADF