> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Flaky Tests: Linear Field Defaults and Link Existing Tickets

> Set per-repository defaults for auto-created Linear tickets, and link existing Linear tickets to a test without creating a duplicate.

**Two updates to the Linear ticketing integration: per-repository field defaults for auto-created tickets, and the ability to link an existing Linear ticket to a test without duplicating it.**

### Field defaults for auto-created Linear tickets

When you connect a Linear team in **Settings** → **Repositories** → **Ticketing Integration**, you can now set per-repository defaults that pre-populate every new ticket: Priority (Urgent / High / Medium / Low / No priority), Labels (team- or workspace-level), Estimate (matches your team's scale), Project (filtered to projects accessible by the selected team), and Assignee (chosen from team members). Defaults apply whenever you open the **Create Ticket** modal and can still be overridden before submitting. Switching teams clears and reloads the available options automatically.

![Linear integration settings showing field defaults for Priority, Labels, Estimate, Project, and Assignee](https://mintcdn.com/trunk-4cab4936/D4O5-bmQy_eSU-hT/assets/changelog/flaky-tests-linear-improvements-5eb257.png?fit=max\&auto=format\&n=D4O5-bmQy_eSU-hT\&q=85\&s=a37256f582a07bc178763c40dd89f7f6)

### Link existing Linear tickets to a test

If you already have a Linear ticket tracking a flaky test, you can attach it without creating a duplicate. From the Test Details page, click **Link Ticket**, paste the Linear URL or ID, and submit. The ticket's title, status, and assignee sync back from Linear. You can also link tickets programmatically with the [Link a ticket to a test case API](https://docs.trunk.io/api/v1/link-a-ticket-to-a-test-case.md).

![Link Existing Ticket modal on the Test Details page](https://mintcdn.com/trunk-4cab4936/D4O5-bmQy_eSU-hT/assets/changelog/flaky-tests-linear-improvements-ab7bf8.png?fit=max\&auto=format\&n=D4O5-bmQy_eSU-hT\&q=85\&s=2e541f8882ea289ec8878dbf3e39aa76)

[Read the docs](https://docs.trunk.io/flaky-tests/management/ticketing/linear-integration.md#field-defaults) to learn more.
