Mermaid Diagrams for Jira
Setup & Usage Guide
Installation
Install Mermaid Diagrams for Jira from the Atlassian Marketplace. It auto-renders mermaid code blocks in issue descriptions and comments.
No configuration is required. The app works immediately after installation.
Working in Confluence instead? See Mermaid Macros for Confluence, the companion app that adds a Mermaid Diagram macro to the page editor.
How It Works
The Jira app automatically scans your issue descriptions and comments for Mermaid code blocks. When it finds one, it renders the diagram inline in a dedicated panel.
To add a diagram, paste your Mermaid code into a code block in the Jira editor. You don't need to set a code-block language. Atlassian's editor doesn't list mermaid as an option, and the app recognizes Mermaid automatically from the diagram type on the first line:
```mermaid
flowchart LR
A[Start] --> B[Process]
B --> C{Decision}
C -->|Yes| D[Done]
C -->|No| B
```
Supported Diagram Types
The app renders 20+ diagram types, everything the bundled Mermaid release supports:
Features
Everything in this section is part of the core app; none of it requires Pro.
Full-Screen with Zoom & Pan
Open any diagram full-screen to read every detail. Zoom in and out and move around complex diagrams using your mouse, trackpad, or keyboard.
Auto-Refresh
Edit a diagram in the issue and save, and the rendered version updates on its own, no manual refresh needed.
Export & Copy
Download or one-click copy any diagram as SVG or PNG. Exported files carry the diagram's font embedded, so they look right on any machine.
QR Transfer
Open a diagram on your phone by scanning a code. The QR code is generated on your device and carries the diagram inside it. Scanning opens mermaid.live, which decodes it client-side. The app transmits nothing.
Clean & Hand-Drawn Styles
Switch any diagram between two free styles: Clean, and Hand-drawn for a sketched look. You can also preview any Pro style live on your own diagram (it reverts on reload).
Dark & Light Mode
Theme-aware rendering automatically syncs with your Jira theme, re-rendering diagrams with the correct color palette when you switch modes.
View Source
Toggle between the rendered diagram and the raw Mermaid source code to inspect or copy the syntax.
Per-Diagram Error Handling
If a diagram has a syntax error, the app surfaces a clear, per-diagram message instead of breaking the panel.
Pro: Optional Styling Upgrade
Version 4 adds Pro, an optional upgrade that is entirely about styling: no core feature has been moved behind it.
- Nine designed styles: Boardroom, Sketchbook, Blackboard, Cupertino, Workshop, Phosphor, Blueprint, Newsprint, and Aurora. Each is switchable per diagram, comes with a matching bundled font, and covers every diagram type.
- Right-angle connectors: one toggle for orthogonal (ELK) edge routing that keeps large flowcharts, state and class diagrams readable. Boardroom turns it on automatically.
- Copy style as code: stamp a style into the diagram source itself, so it renders identically for every viewer, with no configuration.
Version 3 remains free forever; sites that stay on v3 keep everything they have. Updating to v4 starts a subscription: $0 for teams of 10 or under. Current pricing is on the app's Atlassian Marketplace pricing tab.
Where Diagrams Appear
- Sidebar section: A collapsible "Mermaid Diagrams" section in the right-hand column of the issue, with a diagram count badge and compact previews. It appears automatically on any issue that contains Mermaid code. It's a small strip, so look for it among the issue's other context fields. Click "Expand" for the full view.
- Full-width panel: Below the issue description, with full zoom, pan, and export controls. If it isn't showing, open it from the issue's … (more actions) menu.
Diagrams are detected in both issue descriptions and comments, including paginated comments.
Learning Mermaid syntax
Mermaid is an open text-to-diagram syntax: the same code works here, in any other Mermaid tool, and in plain text files. Three places worth knowing:
- Our Mermaid cheat sheet: copy-pasteable starters for the diagram types teams actually use in Jira and Confluence, plus the six tips that save the most time.
- mermaid.js.org: the official documentation, and the complete reference for every diagram type and option.
- Mermaid Live Editor: a scratchpad for drafting and checking syntax before you paste it in.
Creating diagrams via the REST API
There is no app-specific API to learn: the app detects Mermaid in ordinary code blocks, so anything that can write an issue description or comment through Jira's standard REST API can create or edit diagrams. Scripts, automation rules, and AI assistants included.
Write the issue body as ADF (Jira's /rest/api/3/issue and comment endpoints accept it) and include a codeBlock node with language: "mermaid":
{
"type": "codeBlock",
"attrs": { "language": "mermaid" },
"content": [
{ "type": "text", "text": "flowchart TD\n" },
{ "type": "text", "text": " A[Start] --> B{Works?}\n" },
{ "type": "text", "text": " B -->|Yes| C[Ship]\n" },
{ "type": "text", "text": " B -->|No| D[Debug]" }
]
}Adjacent text nodes concatenate, so one node per diagram line keeps payloads readable; a single text node with \n escapes works identically.
- Descriptions and comments both work: the panel scans them all and labels where each diagram came from.
- Editing is just editing the text: update the description or comment through the same API and the diagram re-renders from the new source.
- Untagged code blocks are detected too (Jira's language dropdown has no "mermaid" entry, so human-created blocks usually aren't tagged); the app recognizes Mermaid by its first line. For automation, setting
language: "mermaid"is still the explicit, reliable path.
FAQ
My diagram isn't rendering. What should I check?
Make sure the first line of the code block is a valid Mermaid diagram type (e.g. flowchart TD, graph LR, sequenceDiagram). You do not need to set the code block's language to "mermaid". Atlassian's editor doesn't offer that option, and the app detects Mermaid automatically from the content. If it still doesn't appear, validate your syntax in the Mermaid Live Editor.
Does the app modify my Jira data?
No. The app has read-only access and never creates, modifies, or deletes any content.
Does it work with Confluence?
Yes. Confluence support is a separate app called Mermaid Macros for Confluence. It adds a Mermaid Diagram macro you insert via /Mermaid in the page editor. See the Mermaid Macros for Confluence guide for setup and usage.
Can I draft diagrams with AI?
Yes. If your site has Rovo (included in Atlassian Standard and higher plans), ask it for a diagram in plain English: "make me a flowchart of our deployment process, in Mermaid syntax." Paste the code block it returns into an issue description or comment, and the panel renders it as a live diagram.
Can I create diagrams via the REST API?
Yes. There is no app-specific API to learn. The app detects Mermaid in ordinary code blocks, so anything that writes an issue description or comment through Jira's standard REST API can create or edit diagrams: include an ADF codeBlock node with language: "mermaid" and the diagram source as its text (newlines escaped as \n). Editing the text updates the diagram. The REST API section above has a full example node, and the same automation works in Confluence via the macro's documented parameters.
The dates on my Gantt chart run into each other. Can I fix it?
Mermaid labels a Gantt axis with full dates (2026-05-01) and doesn't thin the ticks out when they won't fit, so a chart with many ticks in a narrow column can overlap. Add axisFormat %b %d and tickInterval 1week to your source for clean weekly ticks like Jul 05. Expanding the diagram to full screen also gives the axis more room. The Mermaid cheat sheet has a worked example.
Is the app free? What does Pro add?
Version 3 is free forever, for teams of any size; sites that stay on v3 keep everything they have. Updating to v4 starts a subscription: $0 for teams of 10 or under, paid above that. Pro styling is included with every subscription (nine designed styles, right-angle connectors, and copy-style-as-code), and no core feature has been moved behind it. Current pricing is on the app's Atlassian Marketplace pricing tab.
The diagram colors changed after the v4 update. How do I get the old ones back?
In v4 the default style is Clean, which uses an Atlassian-matched palette; earlier versions used Mermaid's stock theme, so pies and mindmaps pick up new colors after the update. To pin the original Mermaid colors on any diagram, add this directive as the first line of the diagram source: %%{init: {'theme':'default'}}%%. Note that a diagram declaring its own theme keeps it for every viewer and locks the style picker: the diagram's own style always wins.
I picked a different style, but it didn't stick. Why?
The diagram most likely sets its own style. When a style is stamped into the diagram source with Copy style as code, the source contains a style init directive, and the style picker locks for viewers: the diagram's own style wins, so it renders identically for everyone. To change it, edit or remove the directive in the diagram source; removing it unlocks the picker.
Why doesn't the hand-drawn style sketch my sequence diagram?
The hand-drawn stroke effect applies to flowcharts and state diagrams; other diagram types (sequence, Gantt, and so on) take on each style's colors and font instead. This is an upstream Mermaid 11 limitation; the Mermaid Live Editor behaves the same way. If a future Mermaid release extends the effect to more diagram types, the app inherits it automatically.
Does the QR code send my diagram anywhere?
No. The QR code is generated on your device and carries the diagram inside it. Scanning opens mermaid.live on your phone, which decodes the diagram from the code itself, client-side. The app transmits nothing.
Is my data sent to external servers?
No. Rendering happens entirely in your browser, and the app itself never calls any service outside Atlassian: no analytics, no tracking, nothing phones home. Your diagram source stays in Jira unless you deliberately take it somewhere: exporting an image, for example, writes a file to your own device. See our Security Statement for details.
Support
Need help? Reach out to us: