Mermaid Canvas for Confluence and Jira

Write a diagram as text, see it drawn. This guide covers everything the app does.

Confluence: add a diagram

Mermaid is a way to write a diagram as text. For example "A --> B" draws box A with an arrow to box B. You do not need to learn it: pick a template and change the words.

Editor with code on the left and the drawn diagram on the right
  1. Edit a page, type /mermaid and pick Mermaid Diagram.
  2. Paste your Mermaid code, or choose a starter from Templates.
  3. Add a caption if you like, pick a colour theme and alignment, then click Save.

To change a diagram later, edit the page, select the diagram and click the pencil icon.

Pasting straight from ChatGPT, Claude, GitHub or a README is fine. The app removes the ```mermaid fences, stray text around them, odd spaces and Windows line breaks.

Reading a diagram

PDF and Word export

When you save a diagram, the app attaches a picture of it to the page (named mermaid-diagram-....png). Exports use that picture. Diagrams added before this picture existed export as their Mermaid code; open and save them once to add the picture.

Jira: diagrams on an issue

Open an issue, click the Mermaid Diagrams button under the summary, then Add diagram. You can add several. Anyone who can edit the issue can edit its diagrams.

Jira: issue map

The Issue map tab draws the issue together with its parent, child issues, subtasks and linked issues ("blocks", "relates to" and so on). Boxes are grey for To do, blue for In progress and green for Done. Click a box to open that issue. Large epics show the first 60 issues.

Supported diagrams

Everything in the current Mermaid release, including flowchart, sequence, class, state, entity relationship, Gantt, user journey, pie, quadrant, timeline, mind map, Git graph, C4, sankey, XY chart, block, architecture, kanban, packet, radar and treemap. Full syntax: mermaid.js.org.

Fixing errors

If the code has a mistake, the editor names the line and keeps showing your last working diagram until it's fixed. The most common cause is a missing first line such as flowchart TD or sequenceDiagram.

Moving from another Mermaid app

Open the old macro, copy the Mermaid text, insert Mermaid Diagram, paste and Save. Code fences, stray text and odd spaces are cleaned on paste. Diagrams in the other app keep working until you remove that app.