Get a test's linked ticket
Returns the ticket linked to a test, with its title, assignee and when Trunk last synced it. A test with no linked ticket is 404 TICKET_NOT_LINKED.
This is the only test read that calls the ticketing provider: a ticket Trunk has not synced in the last 15 minutes is read back from its provider first. If the provider does not answer within a few seconds, the ticket is returned as Trunk last synced it, with that older syncedAt.
A ticket the provider no longer has stays linked, with deletedAt set and the last status synced; unlink it or link another ticket to replace it.
A test in another organization is reported as 404 TEST_NOT_FOUND, not 403, and so is a malformed id.
Authorizations
An API key, sent as Authorization: Bearer <key>. An organization admin creates one in the Trunk app under Settings → Developer → API Keys and chooses the permissions it holds. A key with none can read merge queues but change nothing in them. Permissions cover merge queues and test-result uploads, including the quarantine lookups a CI run makes before it uploads; any key can call the other Flaky Tests and Dynamic CI endpoints, including their writes.
Path Parameters
Response
The linked ticket