Mermaid Plus Diagrams & AI Agent for Jira — User Guide
Related blog post: Mermaid 12 in Confluence & Jira: UML use case diagrams
Overview
Mermaid+ Diagrams for Jira lets you create beautiful diagrams directly on Jira issues using Mermaid syntax. Choose from 30 diagram types, customize colors and fonts, and preview your diagram live before saving. Each diagram is stored on the issue and visible to everyone who can view it.
Getting Started
Adding a Diagram to an Issue
- Open any Jira issue
- Find the Mermaid+ Diagrams panel above the Activity section and click the panel icon to add it
- Click the + (Create Diagram) button in the top-right of the panel
- The editor opens in a fullscreen modal with a three-column layout:
- Left: Live Preview
- Middle: Quick Templates
- Right: Settings + Code Editor
- Write or paste your Mermaid code in the editor
- Click Save — the diagram is stored on the issue and displayed in the panel
Editing an Existing Diagram
Click the ✏️ (Edit Diagram) button in the top-right of the panel to reopen the editor. All your settings and code are preserved.
Permissions
- View: Anyone who can view the issue can see the diagram
- Edit/Create: Only users with Edit Issues permission can create or modify diagrams
Editor
Live Preview
The left column renders your diagram in real-time as you type. Any changes to code or settings are reflected immediately.
Quick Templates
The middle column provides one-click templates for all 30 supported diagram types. Click any template to load its starter code into the editor.
Syntax Guide
Click the ? button in the header to open the full syntax reference. Browse 30 diagram types with descriptions and code examples. Hover over any code block and click the insert button to load it into the editor.
Settings
Font
- Family — Choose from Inter, Arial, Helvetica, Georgia, or Courier
- Size — 12px, 14px (default), 16px, 18px, 20px
Colors
Five customizable colors with visual color pickers:
| Color | Affects |
|---|---|
| Node | Background color of diagram nodes/boxes |
| Text | Text color inside nodes |
| Border | Border color of nodes |
| Line | Edge/arrow line color |
| Bg | Diagram background color |
Theme
Mermaid built-in themes:
| Theme | Description |
|---|---|
| Default | Clean light theme with customizable colors |
| Dark | Dark background with high-contrast text |
| Forest | Green-tinted natural color palette |
| Neutral | Grayscale minimal theme |
Note: The Default theme uses your custom color settings. Other themes apply their own color palette.
Output Size
Controls the displayed size of the diagram in the issue panel:
| Size | Scale |
|---|---|
| Small | 0.5x |
| Medium | 1x (default) |
| Large | 1.5x |
| X-Large | 2x |
Dark Mode Support
The diagram automatically adapts to Jira's dark/light mode:
- When you save a diagram, the current Jira theme is recorded
- When the issue loads, if the theme has changed, text and background colors are adjusted for readability
- The editor preview also adapts to dark mode
Supported Diagram Types
Flowchart
Directed graph diagrams with nodes, arrows, and subgraphs.
graph TD
A[Start] -->|Yes| B[Process]
B --> C{Decision}
C -->|Option 1| D[Result 1]
C -->|Option 2| E[Result 2]
Directions: TD (top-down), BT (bottom-up), LR (left-right), RL (right-left)
Node shapes: [Square], (Rounded), {Diamond}, ((Circle))
Swimlane
Cross-functional process diagrams (swimlanes) showing hand-offs between teams or actors. Each top-level subgraph becomes a lane; nodes and edges use standard flowchart syntax. Optionally set a direction (TB, LR, BT, RL) after the keyword.
swimlane-beta LR
subgraph Customer
order[Place order]
receive[Receive delivery]
end
subgraph Sales
review[Review order]
confirm[Confirm and invoice]
end
order --> review
review --> confirm
confirm --> receive
Sequence Diagram
Interaction diagrams showing messages between participants.
sequenceDiagram
participant Alice
participant Bob
Alice->>Bob: Hello Bob
Bob-->>Alice: Hi Alice
Class Diagram
Object-oriented class relationships with inheritance, composition, and visibility.
classDiagram
Animal <|-- Duck
Animal : +int age
class Duck {
+String beakColor
+swim()
}
State Diagram
Finite state machines with transitions between states.
stateDiagram-v2
[*] --> Idle
Idle --> Processing
Processing --> Done
Done --> [*]
Entity Relationship Diagram
Database schema diagrams with entity relationships.
erDiagram
CUSTOMER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
User Journey
Task satisfaction maps with sentiment scores (1–5).
journey
title My working day
section Morning
Make tea: 5: Me
Do work: 3: Me
Gantt Chart
Project schedule charts with tasks, dependencies, and milestones.
gantt
title Project Plan
dateFormat YYYY-MM-DD
section Phase 1
Research :a1, 2024-01-01, 30d
Design :after a1, 20d
Pie Chart
Proportional data visualization.
pie title Time Allocation
"Development" : 45
"Testing" : 30
"Meetings" : 25
Git Graph
Git branch and commit history visualization.
gitGraph
commit
branch develop
checkout develop
commit
checkout main
merge develop
commit
Mindmap
Hierarchical tree diagrams for brainstorming.
mindmap
root((Central Topic))
Branch A
Sub-topic 1
Branch B
Sub-topic 2
Timeline
Chronological event sequences.
timeline
title History
section 2020
Event A : Description
section 2021
Event B : Description
Requirement Diagram
Requirements traceability diagrams linking requirements to elements.
requirementDiagram
requirement test_req {
id: 1
text: the test text.
risk: high
verifymethod: test
}
element test_entity {
type: simulation
}
test_entity - satisfies -> test_req
C4 Diagram
Software architecture diagrams following the C4 model.
C4Context
title System Context
Person(user, "User")
System(app, "Application")
Rel(user, app, "Uses")
Quadrant Chart
Two-axis categorization charts.
quadrantChart
title Analysis
x-axis Low --> High
y-axis Low --> High
quadrant-1 Expand
quadrant-2 Promote
Item A: [0.3, 0.6]
Item B: [0.7, 0.4]
Cynefin
Dave Snowden's sense-making framework that categorizes problems into five domains: clear, complicated, complex, chaotic, and confusion (center). Each domain holds quoted-string items; optional top-level transitions show how situations move between domains.
cynefin-beta
title Where does this problem sit?
complex
"Probe - run safe-to-fail experiments"
complicated
"Analyze - apply expert knowledge"
clear
"Respond - apply best practice"
chaotic
"Act - stabilize first"
confusion
"Break the problem down"
clear --> chaotic : "Complacency"
chaotic --> complex : "Stabilized"
Sankey Diagram
Flow diagrams showing quantities through a system.
sankey-beta
Source,Target,100
Source,Other,50
XY Chart
Bar and line charts.
xychart-beta
title "Revenue"
x-axis [Q1, Q2, Q3, Q4]
y-axis "USD" 0 --> 100
bar [30, 45, 60, 80]
line [32, 48, 62, 78]
Block Diagram
Block diagrams with columns layout.
block-beta
columns 1
db(("DB"))
block:ID
A["Block A"]
B["Block B"]
end
ID --> db
Packet Diagram
Network packet structure diagrams.
packet-beta
0-15: "Source Port"
16-31: "Destination Port"
32-63: "Sequence Number"
Kanban Board
Board-style task organization.
kanban
To Do
Task 1
In Progress
Task 2
Done
Task 3
Architecture Diagram
Infrastructure and service architecture.
architecture-beta
group api(cloud)[API]
service db(database)[Database] in api
service server(server)[Server] in api
db:L -- R:server
Radar Chart
Multi-axis comparison charts.
radar-beta
axis Math, Science, English
curve Alice{85, 90, 80}
curve Bob{70, 75, 85}
max 100
TreeView
File/folder tree visualization.
treeView-beta
"root"
"src"
"index.ts"
"test"
"index.test.ts"
Treemap
Hierarchical data as nested rectangles.
treemap
"Category A"
"Item 1" : 10
"Item 2" : 20
Ishikawa (Fishbone)
Cause-and-effect diagrams.
ishikawa
Problem Statement
Category A
Cause 1
Category B
Cause 2
Venn Diagram
Set relationship diagrams.
venn-beta
title "Team Skills"
set Frontend
set Backend
union Frontend,Backend["Fullstack"]
ZenUML
Sequence diagrams using ZenUML syntax with participant types.
zenuml
title Service Flow
Actor User
Database API
User->API: Request
API->User: Response
Railroad
Syntax/grammar (railroad) diagrams for technical writers and language designers. Ships the EBNF variant — terminals in quotes, | choice, ? optional, * zero-or-more, + one-or-more, ( ) grouping. One rule per statement, each ending with ;.
railroad-ebnf-beta
title "Arithmetic Expression Grammar"
expression = term ( ( "+" | "-" ) term )* ;
term = factor ( ( "*" | "/" ) factor )* ;
factor = number | "(" expression ")" ;
number = digit+ ;
digit = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" ;
Rovo AI Agent
The app ships a Rovo agent that works with diagrams on Jira issues. Open the agent chat — from an issue, plain chat, or Rovo Studio — and ask in plain language:
| Capability | Example prompt | What happens |
|---|---|---|
| Create | "Add a flowchart of this issue's workflow" | A rendered diagram is attached to the issue |
| Read | "What does the diagram on this issue show?" | The diagram source and type come back in chat |
| Update | "Make the diagram clearer" | The diagram is replaced in place — theme and color settings are preserved |
The agent edits the same store your team edits by hand, so anything it changes appears in the issue panel instantly and stays a normal, re-editable diagram. There is exactly one diagram per issue — if one already exists, the agent updates it instead of adding a second.
Chat cannot render images — the agent replies with the issue link and the source. Open the issue to see the rendered diagram.
Use with Any AI Client (MCP)
The app exposes its three diagram tools as an MCP (Model Context Protocol) server, so they work in two more places beyond the built-in Rovo agent:
-
Rovo Studio agents you build yourself — in Rovo Studio, create an agent, choose Add tools → Connected apps, and add the three Mermaid Plus tools. Combine them with other apps' tools in one agent.
-
Third-party MCP clients — Claude Code, Cursor, and any MCP-compatible client can connect directly to the app's MCP endpoint:
https://mcp.atlassian.com/forge/b1190f13-ccbd-4598-b6a6-fd4276d41594This requires the admin setup below (once per site), then each user connects their own client — see the Claude Code walkthrough.
Admin setup: expose the tools (required for third-party clients)
External MCP access is disabled by default — until a site or org admin turns it on, clients can authenticate but will not see the diagram tools. It is a one-time step per site:
- Sign in to admin.atlassian.com as a site or organization admin and open your organization.
- Go to Apps → Sites and select your site (e.g.
your-site.atlassian.net). - Open Connected apps and select Mermaid Plus Diagrams & AI Agent for Jira.
- In the app details, find Tools and switch on the three diagram tools, then save.
Good to know:
- The toggle is per site — enabling it on one site does not expose the tools on any other site.
- The built-in Rovo agent in Jira chat does not need this toggle; it works with no admin setup at all.
- Each user still connects and approves their own client through OAuth — the admin toggle only makes the tools visible to connect, it does not grant anyone access by itself.
Example: connect Claude Code
Once the admin setup above is done, in a terminal:
# 1. Register the MCP server. --scope user makes it available in every
# project; without it, Claude Code registers it for the current project only.
claude mcp add --scope user --transport http mermaid-plus-jira \
https://mcp.atlassian.com/forge/b1190f13-ccbd-4598-b6a6-fd4276d41594
# 2. Confirm it is registered
claude mcp list
# mermaid-plus-jira: https://mcp.atlassian.com/forge/b1190f13-… - ! Needs authentication
- Start
claudeand run/mcp, select mermaid-plus-jira, choose Authenticate. A browser opens the Atlassian OAuth 2.1 consent screen — sign in, select your site, and approve. claude mcp listshould now show✔ Connected. Try a real prompt:
Read the Mermaid diagram on issue DEV-123 and suggest a clearer layout
Notes learned the hard way:
- Until the OAuth step is done, the server shows
! Needs authenticationand non-interactive Claude runs skip it silently — always checkclaude mcp listfirst.- There is no issue context over MCP, so pass the issue key (e.g.
DEV-123) in your prompt.
The three MCP tools
| Tool | What it does | Key inputs via MCP |
|---|---|---|
create-diagram | Attaches a rendered Mermaid diagram to an issue | diagramCode, issueKey |
get-diagram | Reads the diagram source and type from an issue | issueKey |
update-diagram | Replaces the diagram source on an issue, keeping your settings | diagramCode, issueKey |
There is exactly one diagram per issue — create-diagram refuses when one already exists (use update-diagram), and read/update on an issue without a diagram stop with a clear message instead of adding one uninvited.
In Rovo chat started from an issue, the issue context is picked up automatically. Via MCP there is no issue context — pass the key from the issue URL (e.g.
…/browse/DEV-123→issueKey: "DEV-123") explicitly.
All tools run with your own Jira permissions — a user who cannot edit an issue cannot change its diagram through the agent or MCP either.
Tips
- Use the Syntax Guide (? button) to quickly find the right syntax for any diagram type
- Start with a Quick Template and modify it to fit your needs
- Use Dark or Forest themes for issues viewed in dark-themed Jira spaces
- Adjust Output Size to control how large the diagram appears in the panel
- All settings are preserved when you re-edit an existing diagram
Performance
Diagrams render instantly on issue load using cached SVG. The Mermaid.js library is only loaded during editing — not when viewing issues. This keeps your Jira issues fast.
Support
For issues or feature requests, please visit the app's listing on the Atlassian Marketplace.