# Combining text effects in Jira: bold, italic, color, code

URL: https://goingstellar.ro/reference/jira-formatting/combining-text-effects/

Text effects in Jira wiki markup can be nested inside each other, and ADF stores them as a list of marks on each text node. Most pairs survive a round trip, but the order is normalised, overlapping effects are split, and code accepts only a link.

## Wiki markup

```
*_bold italic_*
{color:red}*bold red*{color}
```

## Stored as ADF (REST API v3)

The ADF document Jira Cloud stores for `*_bold italic_*`:

```json
{
 "type": "doc",
 "version": 1,
 "content": [
  {
   "type": "paragraph",
   "content": [
    {
     "type": "text",
     "text": "bold italic",
     "marks": [
      {
       "type": "em"
      },
      {
       "type": "strong"
      }
     ]
    }
   ]
  }
 ]
}
```

## Examples

Wiki markup (API v2):

```
*_bold italic_*
```

Italic inside bold. Both marks are kept.

Rendered by Jira (HTML):

```html
<p><b><em>bold italic</em></b></p>
```

Back to wiki after the round trip:

```
*_bold italic_*
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
_*italic bold*_
```

The opposite nesting order. Jira writes it back in the other order.

Rendered by Jira (HTML):

```html
<p><em><b>italic bold</b></em></p>
```

Back to wiki after the round trip:

```
*_italic bold_*
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
*bold -strike- inside*
```

A partial overlap: strike covers only the middle of a bold phrase.

Rendered by Jira (HTML):

```html
<p><b>bold <del>strike</del> inside</b></p>
```

Back to wiki after the round trip:

```
*bold* *-strike-* *inside*
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
{color:red}*bold red*{color}
```

Color around bold. The color becomes hex when stored.

Rendered by Jira (HTML):

```html
<p><font color="red"><b>bold red</b></font></p>
```

Back to wiki after the round trip:

```
{color:#ff0000}*bold red*{color}
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
{{mono *with bold*}}
```

Bold inside monospace. Only the code mark is kept in ADF.

Rendered by Jira (HTML):

```html
<p><tt>mono <b>with bold</b></tt></p>
```

Back to wiki after the round trip:

```
{{mono *with bold*}}
```

Sent to Jira Cloud on 29 Nov 2026.

Wiki markup (API v2):

```
??cite?? and +ins+ and ^sup^ in one line
```

Four different effects in one paragraph, each on its own word.

Rendered by Jira (HTML):

```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 line
```

Sent to Jira Cloud on 29 Nov 2026.

ADF (API v3):

```
{"content": [{"content": [{"marks": [{"type": "code"}, {"attrs": {"href": "https://example.com"}, "type": "link"}], "text": "code link", "type": "text"}], "type": "paragraph"}], "type": "doc", "version": 1}
```

Sent as ADF through v3: code plus link, the only mark combination the documentation allows for code.

Rendered by Jira (HTML):

```html
<p><tt><a href="https://example.com" class="external-link" rel="nofollow noreferrer">code link</a></tt></p>
```

Back to wiki after the round trip:

```
{{[code link|https://example.com]}}
```

Sent to Jira Cloud on 29 Nov 2026.

## What changes in conversion

- Nested effects become a list of marks on one text node. The order of nesting in the wiki text is not preserved: `_*italic bold*_` returns as `*_italic bold_*`.
- A partial overlap splits the text. `*bold -strike- inside*` turns into three text nodes, and the wiki written back repeats the bold markers on each part.
- Code accepts only the link mark. A v3 request with code and strong together was rejected with INVALID_INPUT, and bold written inside `{{ }}` is dropped in ADF.
- Text color and background color have their own limits in ADF: neither combines with code, and text color does not combine with link either.

## Pitfalls

- Do not count on the nesting order surviving a save. Check the stored ADF when order matters.
- Keep effects short and on whole words. Partial overlaps create many small runs, and a wiki round trip can leave stray markers.
- Do not put bold, colour or highlight inside monospace. Use a code block when you need to show code with markup around it.

## Related

- [*strong* (bold)](https://goingstellar.ro/reference/jira-formatting/bold-strong/)
- [_emphasis_ (italic)](https://goingstellar.ro/reference/jira-formatting/italic-emphasis/)
- [-strikethrough-](https://goingstellar.ro/reference/jira-formatting/strikethrough/)
- [{{monospaced}}](https://goingstellar.ro/reference/jira-formatting/monospace/)
- [{color} text color](https://goingstellar.ro/reference/jira-formatting/text-color/)
- [Text highlight (background color)](https://goingstellar.ro/reference/jira-formatting/background-color/)

## Sources

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

