Unsaved
Ready
Loading Monaco Editor...
Preview
Styling
State Diagram
All Business Process templates

Support Ticket Workflow — Mermaid State Diagram

State diagram for a customer support ticket lifecycle from creation through triage, resolution, and closure.

What this diagram shows

This Mermaid state diagram is a ticket lifecycle. New tickets are auto-categorized into Triaged, then routed to Assigned. Inside Assigned, the agent moves between Investigating, Waiting on Customer, and Waiting on Engineering. A solution leaves the composite state for Resolved. The customer can reopen, which returns the ticket to Assigned. Resolved auto-closes after 48 hours. New or Assigned tickets can jump to Escalated on an SLA warning, and a manager intervention sends Escalated back to Assigned.

Use it when support and engineering argue about who owns a ticket that is waiting. Waiting on Engineering is inside Assigned, so the ticket still has an agent even while engineering has the bug. Escalated is outside that box: it is the SLA path, not the bug path. Auto-close is a transition from Resolved, not from the agent clicking a button in the investigating state.

The start is ticket created. The only end is Closed. Reopened does not have its own end.

Mermaid syntax in this template

stateDiagram-v2 with one composite state named Assigned. Inner states use the same arrow syntax. The 48 hour close is a transition label, not a timer construct.

  • New --> Triaged : Auto-categorize

    The first hop is automatic. There is no human on this edge.

  • state Assigned { ... }

    Investigating, WaitingOnCustomer, and WaitingOnEngineering live inside the assignee. The inner end is Solution found.

  • Resolved --> Closed : Auto-close after 48h

    The label is the policy. Mermaid will not actually wait 48 hours; the diagram documents the rule.

  • Resolved --> Reopened : Customer not satisfied

    Reopened goes to Assigned, not back to New, so triage does not run again.

Variations and ways to customize it

Separate a pending-customer SLA

Waiting on the customer should pause the SLA that escalates Assigned. The template escalates from Assigned as a whole. If your clock pauses, remove the Assigned to Escalated edge and escalate only from Investigating.

Investigating --> Escalated : SLA breach
WaitingOnCustomer --> Investigating : Customer replied

Add a merged or duplicate end

Closed is the only end. A duplicate ticket should not look resolved. Add Duplicate as a terminal from Triaged.

Triaged --> Duplicate : Merged into another ticket
Duplicate --> [*]

Name the engineering handoff

WaitingOnEngineering is a state, not a second queue. If engineering has its own board, a note on that state saying See bug tracker keeps people from expecting a second assignee inside this diagram.

Diagram type

State Diagram

Tags

supporthelpdeskticketsSLAcustomer service
Open in Editor

Frequently asked questions

When does a ticket auto-close?

From Resolved, labeled Auto-close after 48h. It does not close from Investigating or from Waiting on Customer. A reopen must happen before that transition.

Does waiting on engineering remove the assignee?

No. WaitingOnEngineering is inside the Assigned composite state. Escalated is the state outside Assigned, used for an SLA breach, and a manager sends it back to Assigned.

What happens when the customer replies?

WaitingOnCustomer returns to Investigating. The reply does not create a new ticket and does not pass through triage again.

Where does a brand-new ticket enter?

The start state goes to New on Ticket created, then Triaged on auto-categorize, then Assigned on route to agent. An SLA warning can also jump from New straight to Escalated.

Related templates and guides

All Business Process templates