Skip to main content
POST
/
flaky-tests
/
link-ticket-to-test-case
Link a ticket to a test case
curl --request POST \
  --url https://api.trunk.io/v1/flaky-tests/link-ticket-to-test-case \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '
{
  "test_case_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "external_ticket_id": "<string>",
  "repo": {
    "host": "<string>",
    "owner": "<string>",
    "name": "<string>"
  }
}
'
"<string>"

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.

Authorizations

x-api-token
string
header
required

Body

application/json
test_case_id
string<uuid>
required

The id of the test case. Should be a UUID.

Example:

"01234567-0123-0123-0123-0123456789ab"

external_ticket_id
string
required

The external identifier of the ticket. For Jira this is the ticket number prefixed by the Project Key. For Linear this is the ticket number prefixed by the Team Identifier

Examples:

"KAN-123"

"TRUNK-1234"

repo
object
required

The repository to list tests for.

Response

OK