# {panel} macro in Jira: options and the ADF panel types

URL: https://goingstellar.ro/reference/jira-formatting/panel/

{panel} wraps a block in a bordered box, with an optional title and colours. In wiki markup you can set any CSS colour; in ADF a panel has a panelType, and the colour comes from that type. Jira maps your colour to the nearest type when it stores the comment.

## Wiki markup

```
{panel}...{panel}
{panel:title=My Title}...{panel}
{panel:title=My Title|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}...{panel}
```

## 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}`:

```json
{
 "type": "doc",
 "version": 1,
 "content": [
  {
   "type": "panel",
   "content": [
    {
     "type": "paragraph",
     "content": [
      {
       "type": "text",
       "text": "info panel"
      }
     ]
    }
   ],
   "attrs": {
    "panelType": "info"
   }
  }
 ]
}
```

## Examples

Wiki markup (API v2):

```
{panel}
Some text
{panel}
```

Plain panel. Written back from ADF, it gains a blue background colour because the stored panel is the info type.

Rendered by Jira (HTML):

```html
<div class="panel" style="border-width: 1px;"><div class="panelContent">
<p>Some text</p>
</div></div>
```

Back to wiki after the round trip:

```
{panel:bgColor=#deebff}
Some text
{panel}
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
{panel:title=My Title}
Some text with a title
{panel}
```

Adds a title. In the stored ADF the title is no longer a header; it is a bold first paragraph inside the panel.

Rendered by Jira (HTML):

```html
<div class="panel" style="border-width: 1px;"><div class="panelHeader" style="border-bottom-width: 1px;"><b>My Title</b></div><div class="panelContent">
<p>Some text with a title</p>
</div></div>
```

Back to wiki after the round trip:

```
{panel:bgColor=#deebff}
*My Title*

Some text with a title
{panel}
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
{panel:title=My Title|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1|bgColor=#FFFFCE}
a block of text surrounded with a *panel*
yet _another_ line
{panel}
```

Uses every option from the help text. The v2 render applies all of them; the stored panel keeps only the title and a warning-type colour.

Rendered by Jira (HTML):

```html
<div class="panel" style="background-color: #FFFFCE;border-color: #ccc;border-style: dashed;border-width: 1px;"><div class="panelHeader" style="border-bottom-width: 1px;border-bottom-style: dashed;border-bottom-color: #ccc;background-color: #F7D6C1;"><b>My Title</b></div><div class="panelContent" style="background-color: #FFFFCE;">
<p>a block of text surrounded with a <b>panel</b><br/>
yet <em>another</em> line</p>
</div></div>
```

Back to wiki after the round trip:

```
{panel:bgColor=#fffae6}
*My Title*

a block of text surrounded with a *panel*
yet _another_ line
{panel}
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
{panel:bgColor=#ff0000}
Custom red panel
{panel}
```

Asks for pure red. The v2 render shows it, but the stored panel is the error type and comes back as a pale red.

Rendered by Jira (HTML):

```html
<div class="panel" style="background-color: #ff0000;border-width: 1px;"><div class="panelContent" style="background-color: #ff0000;">
<p>Custom red panel</p>
</div></div>
```

Back to wiki after the round trip:

```
{panel:bgColor=#ffebe6}
Custom red panel
{panel}
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
{panel}
* list in panel
{panel}
```

Puts a list inside a panel. Block content works inside the macro and survives.

Rendered by Jira (HTML):

```html
<div class="panel" style="border-width: 1px;"><div class="panelContent">
<ul>
	<li>list in panel</li>
</ul>
</div></div>
```

Back to wiki after the round trip:

```
{panel:bgColor=#deebff}
* list in panel
{panel}
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
{panel}
{code}
x = 1
{code}
{panel}
```

Nests a code macro. The nesting is kept; the code gets an explicit java language on the way back.

Rendered by Jira (HTML):

```html
<div class="panel" style="border-width: 1px;"><div class="panelContent">
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">x = 1
</pre>
</div></div>
</div></div>
```

Back to wiki after the round trip:

```
{panel:bgColor=#deebff}
{code:java}x = 1{code}
{panel}
```

Sent to Jira Cloud on 29 Nov 2026.

ADF (API v3):

```
{"content": [{"attrs": {"panelColor": "#eae6ff", "panelIcon": ":rocket:", "panelIconText": "🚀", "panelType": "custom"}, "content": [{"content": [{"text": "custom panel", "type": "text"}], "type": "paragraph"}], "type": "panel"}], "type": "doc", "version": 1}
```

Starts from ADF with a custom type, a colour and an icon. The v2 render and the wiki output carry no colour at all.

Rendered by Jira (HTML):

```html
<div class="panel" style="border-width: 1px;"><div class="panelContent">
<p>custom panel</p>
</div></div>
```

Back to wiki after the round trip:

```
{panel:bgColor=}
custom panel
{panel}
```

Sent to Jira Cloud on 29 Nov 2026.

## What changes in conversion

- ADF panels have a fixed panelType. The wiki colours seen in these probes are #deebff (info), #eae6ff (note), #fffae6 (warning), #ffebe6 (error) and #e3fcef (success). A wiki panel with any other bgColor is stored as the closest type.
- borderStyle, borderColor, borderWidth and titleBGColor are dropped. The title becomes a bold paragraph inside the panel.
- A tip or custom panel written through v3 is accepted, but v2 writes it as {panel:bgColor=} with an empty value and renders it with no background.
- A {panel} left unclosed produces an empty panel followed by the text as a normal paragraph.

## Pitfalls

- A colour you pick in wiki is a request, not a stored value. Check the comment after it has been saved through the editor.
- `{info}`, `{note}`, `{tip}` and `{warning}` are not rendered by Jira Cloud's wiki renderer. Use {panel}.
- Keep the closing {panel} on its own line when the content has several blocks.

## Related

- [{info}, {note}, {tip}, {warning}](https://goingstellar.ro/reference/jira-formatting/info-note-tip-warning/)
- [{noformat} macro](https://goingstellar.ro/reference/jira-formatting/noformat/)
- [{code} macro](https://goingstellar.ro/reference/jira-formatting/code-macro/)
- [Expand (collapsible section)](https://goingstellar.ro/reference/jira-formatting/expand/)
- [REST API v2 wiki markup vs v3 ADF](https://goingstellar.ro/reference/jira-formatting/api-v2-vs-v3/)

## Sources

- [Text Formatting Notation Help (Jira, in-product help)](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all)
- [ADF node: panel (Jira Cloud platform)](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/panel/)

