> ## Documentation Index
> Fetch the complete documentation index at: https://trunk-4cab4936-mintlify-bab0b22b.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Ticketing

> Triage your flaky tests faster by creating automatically assigned and labeled tickets in your ticketing system

You can integrate directly with your ticketing systems to automatically create tickets when Trunk [detects a flaky test](/flaky-tests/detection).

## Automatic ticketing

With a connected Linear, Jira, or Asana integration, Trunk can manage ticket lifecycle automatically: create a ticket when a test becomes flaky or broken, reopen it if a fixed test regresses, and close it when the test returns to healthy. See [Automatic ticketing](./automatic-ticketing) for setup and behavior.

## Ticket content

Flaky Tests automatically generates tickets complete with a title and description. If you’re connected to Linear, Jira, or Asana, you can also assign default issue types, teams, projects, or assignees.

The ticket description contains the following information:

* Identifier of the test
* Since when has the test been labeled flaky
* The last time this test failed
* The impact when run on PRs
* The impact when run on branches
* Quarantine status
* Most common failure reasons
* Code owners, according to the [CODEOWNERS](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners) file in your repository

## Ticket event history

When you unlink a ticket and re-link a test case to a different ticket, all events from the previous ticket association are preserved. The test case's [Events tab](/flaky-tests/dashboard#test-case-details) shows the full history — creation, updates, and status changes — across all tickets the test has ever been linked to, not just the current one.

## Integration setup

Ticket Creation supports integrations with Linear, Jira, and Asana. For any other platform, the generated ticket content is formatted in Markdown and can be copied across — see [Other ticketing platforms](./other-ticketing-platforms).

<Columns cols={2}>
  <Card title="Linear" img="https://mintcdn.com/trunk-4cab4936-mintlify-bab0b22b/fjnjES2p8dOKZsXw/assets/flaky-tests/management/ticketing/linear-v2.png?fit=max&auto=format&n=fjnjES2p8dOKZsXw&q=85&s=4777359911e8f6c5299c69f3e0bbadb2" href="./linear-integration" width="1600" height="1000" data-path="assets/flaky-tests/management/ticketing/linear-v2.png" />

  <Card title="Jira" img="https://mintcdn.com/trunk-4cab4936-mintlify-bab0b22b/fjnjES2p8dOKZsXw/assets/flaky-tests/management/ticketing/jira.png?fit=max&auto=format&n=fjnjES2p8dOKZsXw&q=85&s=6c7c89fc8594b1d638cd90506aee13aa" href="./jira-integration" width="1600" height="1000" data-path="assets/flaky-tests/management/ticketing/jira.png" />

  <Card title="Asana" img="https://mintcdn.com/trunk-4cab4936-mintlify-bab0b22b/fjnjES2p8dOKZsXw/assets/flaky-tests/management/ticketing/asana.png?fit=max&auto=format&n=fjnjES2p8dOKZsXw&q=85&s=9b013aee9450276087246de4ebe0294b" href="./asana-integration" width="1600" height="1000" data-path="assets/flaky-tests/management/ticketing/asana.png" />
</Columns>
