Skip to content

Packs / helpdesk-and-support-public

ticket-flow

Run a ticket from new to closed with allowed status changes, first-response SLAs and a CSV/JSON export

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-helpdesk-and-support-public

Install

logicpacks pack use helpdesk-and-support-public/ticket-flow
get_pack helpdesk-and-support-public/ticket-flow

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: stdlib-referencezammad-or-chatwootsaas
  • Checks: 2 in outcome/checks.yaml
  • Code: refflow.pyschema.json
  • Tools: python3, docker

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

Run a ticket from new to closed with allowed status changes, first-response SLAs and a CSV/JSON export. Our reference flow (code/refflow.py, stdlib sqlite) proves the records, allowed moves, numbers and export; the same rules carry over to the self-hosted app.

Steps

  1. Model the ticket in code/schema.json: channels, priorities, statuses and the allowed transitions.
  2. Run python3 code/refflow.py scenario code/schema.json outcome/fixtures/scenario.json: create, reject bad input, assign, solve, list, SLA, export.
  3. Mirror the same statuses and SLA targets (urgent 1 h, high 4 h, normal 8 h, low 24 h first response) in Zammad/Chatwoot.
  4. Export weekly: refflow.py export ... csv or the app's report export; check rows = tickets in the period.

Edge cases

  • A solved ticket can be reopened; a closed one cannot (create a follow-up).
  • SLA counts wall-clock hours; business-hours SLAs need a calendar.

Don'ts

  • Don't put customer phone numbers or emails in exports that leave the desk.
  • Don't skip states (open -> closed); the audit trail needs them.

Check

lp pack check helpdesk-and-support/ticket-flow runs outcome/checks.yaml.