- Creates a ticket when a test becomes flaky or broken
- Reopens the existing ticket (or creates a fresh one) when a fixed test regresses
- Closes the ticket when the test returns to healthy
Enabling ticket automation
Navigate to Settings → Repositories → [your repository] → Ticketing. Once your Linear or Jira integration is fully configured, the Ticket automation section becomes available. The three toggles are independent — you can enable any combination:
All settings default to off.
Auto-close applies to whatever ticket is linked to the test — including tickets you created manually or linked yourself — not just tickets the automation created.
Close and reopen target statuses
When auto-close is enabled, you can pick which status closed tickets move to (for exampleDone vs. Won't Fix in Jira, or a specific workflow state in Linear). Similarly, reopened tickets can target a specific status. If you don’t pick one, Trunk uses a sensible provider default: the first “done”-category status for closing, and a “to do”-style status for reopening.
Reopen behavior
When a test becomes flaky or broken again after its linked ticket was closed, the Reopen behavior setting decides what happens:
The reopen window is measured from the ticket’s close date in your ticketing system, so it behaves correctly whether Trunk or a person closed the ticket.
How the automation behaves
- One ticket per test. Each test case has at most one linked ticket at a time. Previous tickets remain visible in the test’s event history.
- Ticket content stays fresh. Auto-created tickets have their description refreshed as the test’s status evolves — for example when a flaky test escalates to broken — so the ticket always reflects current data. Title edits made by your team are preserved, and tickets you created or linked manually are never edited by Trunk (only closed or reopened per your settings).
- Quiet updates. Status escalations update the ticket description in place rather than posting comments, so flip-flopping tests don’t generate notification noise. Comments are only posted on reopen and close, where the context matters.
- Clearly attributed. Auto-created tickets are badged in the dashboard, and every automated action appears in the test’s Events tab attributed to Trunk automation — so it’s always clear whether Trunk or a teammate acted on a ticket.
- Resilient to spikes. A mass status change (for example, a bad merge flipping many tests at once) is absorbed and drained at a pace that respects your ticketing provider’s rate limits.