2025
Flaky Tests: Link Ticket to Test Case API
Today, we’re introducing a new Link Ticket to Test Case API that allows you to link your existing Linear or Jira tickets to tests in the Flaky Tests dashboard.
Today, we’re introducing a new Link Ticket to Test Case API that allows you to link your
existing Linear or Jira tickets to tests in the Flaky Tests dashboard.
Trunk has built-in ticketing integrations with Jira and Linear, allowing you to create detailed bug
tickets for flaky tests with a single click. If you’re already tracking flaky test issues with
existing tickets, you can now link those Jira or Linear tickets directly to your flaky tests in
Trunk, keeping all relevant context in one place.
Calling the API requires the ID of your test case in Flaky Tests, which can be found on
incoming webhook payloads or the URL of the test case
details page, and the ID of the ticket in your ticketing system:
Once a ticket is linked to a test, ticketing information will be available in Flaky Tests webhooks.
This makes it possible to build custom integrations and automations with the context of any linked
ticket information. And when ticket information is not included in the payload, you know one has not
been created for the flake.
You can only use the Link Ticket to Test Case API if you have already set up the
Linear or Jira integration.
Read the reference docs
for more information on the Link Ticket to Test Case API.