Mekhane Apps

Guide · Jira Cloud

How to add Mermaid diagrams to Jira Cloud issues

Mermaid lets you describe a diagram as text and have it drawn for you. Jira Cloud does not draw Mermaid by itself: if you paste Mermaid code into an issue, you get a code block, not a diagram. This guide shows the options and the quickest way to keep real, editable diagrams on your issues.

Why put the diagram on the issue

A diagram is most useful next to the work it explains: the approval flow on the process-change issue, the sequence of calls on the bug, the states on the feature. When the diagram lives in a separate tool, it goes stale, people need another account to see it, and the link breaks when someone leaves.

Keeping it as Mermaid text has one more advantage: anyone can change a box or an arrow in seconds, without redrawing anything.

Your options

OptionWorks forDrawback
Paste the code in a code blockKeeping the sourceReaders see code, not a diagram
Draw it elsewhere and attach a PNGA one-off pictureOut of date after the first change; the source is lost
Link to an external diagram toolTeams that already use oneAnother account, and your content leaves Atlassian
An app that renders Mermaid in the issueLiving diagrams on the issueNeeds an admin to install it once

Step by step with Mermaid Diagrams Live Editor for Jira

  1. A Jira administrator installs Mermaid Diagrams Live Editor for Jira from the Atlassian Marketplace. It is free for up to 10 users.
  2. Open an issue. The first time, click the apps button under the issue title and choose Mermaid diagrams. The panel stays on that issue.
  3. Click Add diagram, give it a title, and type or paste your Mermaid code. The preview on the right updates as you type, and syntax errors appear with Mermaid’s own message. If you are starting from scratch, pick a template: flowchart, sequence, class, state, ER, Gantt, pie, mindmap, timeline or git graph.
  4. Click Save. Everyone who can see the issue now sees the diagram, drawn as sharp SVG. Use Expand to open it full screen with zoom and pan.
A change approval flowchart in the Mermaid diagrams panel of a Jira issue
The diagram sits on the issue, under the description.

Example: a change approval flow

Copy this into the editor to see it drawn:

flowchart LR
  A([Change requested]) --> B{Risk level?}
  B -- Low --> C[Peer review]
  B -- High --> D[CAB review]
  C --> E{Approved?}
  D --> E
  E -- Yes --> F[Schedule deployment]
  E -- No --> G[Back to requester]
  G --> A
  F --> H([Change closed])

A sequence diagram works the same way, and is handy on bugs and integration tasks:

sequenceDiagram
  participant U as User
  participant W as Web app
  participant A as Auth service
  U->>W: Sign in
  W->>A: Validate credentials
  A-->>W: Token
  W-->>U: Dashboard
The Mermaid editor with code on the left and a live preview on the right
Code on the left, live preview on the right.

Tips

The full-screen diagram viewer in Jira dark mode, with zoom controls
Full-screen viewer, here in Jira’s dark theme.

Questions

Does my diagram leave Atlassian?

No. The app is built on Forge and qualifies for Runs on Atlassian: diagrams are stored in Atlassian-hosted storage and drawn in your browser. There is no external account and no server of ours involved.

Who can see and edit diagrams?

Anyone who can view the issue can see its diagrams and edit them. Deleting the issue deletes its diagrams.

Can I use Mermaid in Confluence too?

Yes, see how to add Mermaid diagrams to Confluence Cloud pages.

Get it on the Marketplace   Documentation