• Jul 20, 2026
  • 12 min read
Process owner and technical writer reviewing a top-down Mermaid workflow diagram beside Confluence runbook prose with wide reader navigation and phased subgraph boundaries

How to Document Business Processes in Confluence With Mermaid Flowcharts

The vendor onboarding runbook had seventeen steps in prose and a flowchart that stopped after step six.

During the quarterly review, someone asked what happens when finance rejects a setup request. The answer was split across a bullet list, a footnote, and a callout the author forgot to update last quarter. The Mermaid flowchart on the same page showed the happy path only.

That is a common Confluence process documentation failure: the page looks complete, but prose and diagram disagree — and reviewers cannot follow exception paths without the author on the call.

"The steps are all on the page. Why do we still need a walkthrough?"

This how-to shows process owners and technical writers how to keep Mermaid flowchart Confluence source editable beside operational runbooks — and when wide reading helps reviewers follow long paths.


Quick Answer

ResponsibilityProse on the pageMermaid flowchart
ContextRoles, tools, SLAs, links, forms
StructureSteps, decisions, branches, handoffs
ExceptionsDetail tables, escalation contactsBranch paths with stable node IDs
MaintenanceLast reviewed, owner, change logDiff-friendly source with prefixed IDs
  • Use flowchart TD for most business workflows. Top-down fits approval chains, onboarding, triage, and runbooks that read step-by-step.
  • Use stable IDs and short labels. IDs stay constant; labels name the step; detail lives in prose below the macro.
  • Use subgraphs for phases. Intake, review, fulfillment — not one flat list of twenty boxes.
  • Open wide reading for long paths. When decision branches stretch past the page column, search and minimap help reviewers who did not write the diagram.

BacklogBridge Diagram Lens for Confluence is one macro with source editing, live preview, wide reader, search, and minimap. Verify the current Marketplace listing before install.

What You Are Trying To Accomplish

You want Confluence process pages where:

  • Mermaid source stays editable as text beside runbook prose
  • reviewers can follow happy path and exception branches without a live author
  • updates to one step do not force a page rewrite
  • operational runbooks stay maintainable after the original author rotates

The outcome is documentation where the diagram and the prose reinforce each other instead of drifting apart.

Requirements

RequirementWhy it matters
Confluence Cloud space for process docsDiagrams live beside SOPs and runbooks
Team naming convention for node IDsStable edits and precise review comments
Mermaid macro with preview and saveCatches syntax errors before publish
Page template for prose + diagramConsistent structure across teams
Admin approval for Marketplace macrosSite admins install through Connected Apps

Use a consistent heading order so authors know where prose ends and structure begins:

OrderSectionContents
1Purpose and scopeWho the runbook serves, in/out of scope
2Owner and review metadataOwner, last reviewed, linked policy pages
3Overview flowchartTD diagram with phased subgraphs
4Phase detailH3 per subgraph; prose references node IDs
5Exception runbooksChild pages linked from prose and comments
6Change logWhat changed in prose and diagram source

Map each H3 phase section to a subgraph ID prefix so reviewers jump between rendered diagram and prose predictably.

Step 1: Choose TD vs LR

The Mermaid flowchart syntax docs describe flowcharts made of nodes and edges with orientations such as top-down and left-to-right. For flowchart TD syntax in process docs:

Process shapeOrientationExample
Approval chain, checklist, triageflowchart TDRequest → review → approve/reject
Handoff across teams top-to-bottomflowchart TDIntake → ops → finance → close
Wide system map with parallel actorsflowchart LROverview only; split detail runbooks
API call ordersequenceDiagramNot a flowchart — use a sequence guide

The Mermaid documentation describes diagrams defined as text and code. Backlog Bridge's Mermaid chart tips guide recommends flowchart TD for workflows and decision trees and flowchart LR for architecture-style maps.

Confluence layout controls can widen the page column. That helps prose tables. It does not replace diagram-level navigation when a TD flowchart grows many branches deep or wide.

Step 2: Write Flowchart TD Source With Stable IDs

Start with a skeleton: start node, one decision, two branches, terminal nodes.

flowchart TD
    start([Start request]) --> step_intake["Log intake ticket"]
    step_intake --> decision_valid{Valid submission?}
    decision_valid -->|No| exception_return["Return to requester"]
    decision_valid -->|Yes| step_assign["Assign reviewer"]
    step_assign --> decision_approved{Approved?}
    decision_approved -->|No| exception_escalate["Escalate to lead"]
    decision_approved -->|Yes| step_fulfill["Fulfill request"]
    step_fulfill --> terminal_done([Closed])
    exception_return --> terminal_done
    exception_escalate --> step_assign
PatternSyntaxUse for
Process stepstep_id["Short label"]Standard actions
Decisiondecision_id{Question?}Branch points
Terminalterminal_done([Closed])End states
Exceptionexception_id["Short label"]Reject, retry, escalate
Edge label`-->Yes

Use role prefixes: step_, decision_, handoff_, exception_, role_. Quote labels when text contains punctuation or Mermaid keywords such as end.

Step 3: Group Phases With Subgraphs

Subgraphs express runbook phases better than one undifferentiated column of boxes.

flowchart TD
    subgraph phase_intake["Intake"]
        start([Start]) --> step_log["Log ticket"]
        step_log --> decision_complete{Complete?}
    end

    subgraph phase_review["Review"]
        decision_complete -->|No| exception_return["Return to requester"]
        decision_complete -->|Yes| step_review["Reviewer check"]
        step_review --> decision_approved{Approved?}
    end

    subgraph phase_fulfill["Fulfillment"]
        decision_approved -->|Yes| step_fulfill["Complete setup"]
        step_fulfill --> terminal_done([Closed])
    end

    decision_approved -->|No| exception_escalate["Escalate to lead"]
    exception_return --> terminal_done
    exception_escalate --> step_review

Each subgraph should match an H3 section in prose. If you need more than 15–25 nodes, split into an overview diagram plus detail runbooks on child pages — see Architecture Diagrams in Confluence for splitting patterns that apply equally to process maps.

Step 4: Keep Labels Short; Put Detail In Prose

Bad — entire runbook crammed into labels:

step_finance["Finance reviews invoice in NetSuite, checks PO match, emails approver if over 5k"]

Good — label names the step; prose below explains tools and SLAs:

step_finance["Finance review"]

Then under Finance review in prose:

  • Tool: NetSuite
  • SLA: 2 business days
  • Escalation: PO mismatch → follow exception_po branch on a linked child runbook page

This keeps the Mermaid flowchart Confluence source diff-friendly and the runbook searchable as normal page text.

Link child pages from prose and page comments — not only from crowded box labels. Edge labels such as |No| name the branch; prose owns the procedure.

Step 5: Author, Preview, And Navigate Long Paths

After an admin installs an approved Mermaid macro:

  1. Paste the TD skeleton with phased subgraphs.
  2. Add decision branches in small batches; preview after each batch.
  3. Confirm quoted labels render when text contains punctuation or keywords.
  4. Save, reopen, and confirm stored configuration matches preview.

When wide reading helps TD process diagrams

Top-down diagrams fail in predictable ways once exception paths multiply:

SymptomWhat is happeningWhat helps
Exception branch disappears below the foldTD stack is taller than the viewportWide view + fit + pan
Reviewer asks "where is escalation?"Too many similarly shaped decision nodesSearch for label text
Author narrates while scrollingLayout knowledge is not in the diagramMinimap + repeatable navigation
Horizontal subprocess breaks page widthTD diagram includes wide LR-style branchSplit subprocess to child page

"Where does finance rejection connect back to review?"

Without search or minimap, the reviewer scans boxes. With search, they navigate by the language already in standups.

Diagram Lens public pages describe a source editor with live preview, line and character counts for source size, wide reader with pan/zoom/fit/reset, search across rendered SVG text, and minimap navigation. The same authoring loop applies to any preview-capable Mermaid macro.

Diagram Lens support docs recommend starting from a small known-good diagram and using the syntax error panel for line, column, and token details when render fails.

Step 6: Review And Maintain Runbooks

PracticeWhy it matters
Reference node IDs in page comments"Update SLA text for step_finance"
Update prose and diagram in the same changePrevents happy-path-only drift
Compare page versions before major process changesCatches unintended diagram edits
Export Mermaid source for release snapshotsAudit outside Confluence
Record owner and last reviewed dateRotation does not orphan runbooks
Split exception runbooks to child pagesKeeps overview diagram readable

Forge macros such as Diagram Lens commonly store diagram configuration in app-owned storage with storage:app. Page history typically captures diagram changes alongside surrounding prose when authors save the macro — but history is not a substitute for review discipline.

For export workflows, see Exporting Mermaid Diagrams From Confluence. SVG and Mermaid source are the primary reliable export paths per Diagram Lens public pages; PNG and PDF are best effort and can depend on browser support, diagram size, and Forge iframe permissions.

Common Pitfalls

PitfallBetter approach
Prose and diagram disagreeSingle owner updates both in same change
Display names used as node IDsStable ID + short label
One diagram for every exceptionOverview + linked detail runbooks
Duplicating runbook text inside every boxProse owns detail; diagram owns branches
Skipping preview on large editsPreview after each phase or branch batch
HTML labels or click syntax from tutorialsPlain labels for predictable Confluence rendering
Browser zoom instead of diagram readerWide view + search for long TD paths
Treating page wide layout as diagram navigationUse reader tools when branches exceed the column

Backlog Bridge's knowledge-base page notes that Diagram Lens-safe examples avoid source-defined interactivity and raw markup patterns — appropriate for shared process spaces.

Admin Checks Before Rollout

Atlassian's Manage your apps documentation says Confluence apps are usually installed from Marketplace through Connected Apps and require site admin access.

At the time of research on July 20, 2026, I did not find an official Atlassian Marketplace listing for BacklogBridge Diagram Lens for Confluence through available public sources in sibling editorial research. Search Marketplace again before install.

CheckWhy it matters for process docs
Listing name, vendor, Cloud compatibilityWrong app or hosting model blocks rollout
Install scopes and egressRunbook source may name internal systems and queues
Source-size limitsLong runbooks with many branches hit limits sooner
Sanitization behaviorPlain labels are safer than HTML or click syntax
Data classification for allowed spacesStored Mermaid may describe internal workflows

The public Diagram Lens security page describes client-side rendering, storage:app scope, no external egress declared in the current manifest, and strict Mermaid sanitization. The privacy page says app-owned diagram configuration is stored in Atlassian Forge hosted storage.

Do not infer SOC 2, ISO, Cloud Fortified, GDPR/DPA, or procurement approval without explicit published evidence.

See Mermaid Macro Security in Confluence for a fuller macro security review.

What Diagram Lens Is Not Trying To Be

The Diagram Lens product page describes a source-first Mermaid editor. It states that it does not include visual drag-and-drop editing, AI generation, or repository sync. Mermaid renders client-side inside Forge Custom UI; the launch model does not use a remote Mermaid renderer or vendor-hosted diagram backend.

That makes Diagram Lens a fit for teams that want editable Mermaid source beside Confluence runbook prose — not for teams whose primary requirement is canvas diagramming, AI-generated diagrams, or Git-backed diagram sync.

When To Use A Different Approach

Trial Checklist

Test with one real operational runbook your team reopens every quarter — not a toy three-box sketch.

  1. Create a Confluence page from your process template.
  2. Write overview prose: purpose, owner, scope, last reviewed date.
  3. Insert Mermaid macro with TD skeleton and two phased subgraphs.
  4. Add three decision branches including one exception path.
  5. Add H3 phase sections in prose referencing node IDs.
  6. Preview after each branch; fix syntax with the macro error panel if available.
  7. Change one step label and the matching prose paragraph; confirm both stay aligned.
  8. Open wide view and search for two step names from standups.
  9. Ask a second reviewer to follow the exception path without author guidance.
  10. Export Mermaid source; test SVG if handoff requires it.
  11. Try PNG or PDF only if those formats matter, using your largest expected diagram.
  12. Record Marketplace, scope, privacy, and classification questions before production use.

If the second reviewer can follow the exception branch without a guided screen share, the prose-plus-diagram workflow is doing real work.

Final Recommendation

Confluence process documentation stays maintainable when Mermaid flowcharts own structure and prose owns context — with stable IDs, flowchart TD orientation for most workflows, and subgraphs for phases.

When paths grow long, wide reading, search, and minimap help reviewers follow branches without a guided screen share. If your team already keeps Mermaid in Confluence and wants source editing plus reader tools for operational runbooks, Diagram Lens is worth a focused trial — after you verify the current Marketplace listing, install prompt, and export behavior on your longest real diagram.

For deeper Mermaid authoring patterns, see Backlog Bridge's Mermaid chart tips guide.