Skip to main content

Sequence diagram

Overview​

A sequence diagram shows how different processes interact with each other and in what order these interactions happen.

Code​

sequenceDiagram
Alice->>John: Hello John, how are you?
John-->>Alice: Great!
Alice-)John: See you later!

Example​

Atlassian Use Cases​

In Jira: Attach sequence diagrams to feature issues or bug reports to illustrate API call flows, authentication sequences, or service interactions.

In Confluence: Use sequence diagrams in technical design documents, API documentation, or architecture decision records (ADRs).

Example: User login flow​

sequenceDiagram
User->>Frontend: Submit credentials
Frontend->>Auth Service: POST /login
Auth Service-->>Frontend: JWT token
Frontend-->>User: Redirect to dashboard

Full Syntax Reference​

For the complete Mermaid sequence diagram syntax, see the official Mermaid documentation.