Link Defect To Test Case
link_defect_to_test_caseLink a defect to a test case through a shared issue mapping, connecting defect tracking with test coverage.
Instructions
Link a defect to a test case through a shared issue mapping.
This operation ensures defect governance and test coverage are connected: the issue is linked to the defect and to the specified test case.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"defect_id": "<defect_id>",
"test_case_id": "<test_case_id>"
},
"name": "link_defect_to_test_case"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| defect_id | Yes | ID of the defect to link | |
| issue_key | No | Issue key to use for linking (for example, PROJ-123). If omitted, the defect's existing issue mapping is reused. | |
| test_case_id | Yes | ID of the test case to link | |
| output_format | No | Output format: 'json' (default) or 'plain'. | |
| integration_id | No | Optional integration ID for issue mapping. Mutually exclusive with integration_name. | |
| integration_name | No | Optional integration name for issue mapping. Mutually exclusive with integration_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| defect_id | No | ||
| issue_key | No | ||
| defect_url | No | ||
| test_case_id | No | ||
| test_case_url | No | ||
| already_linked | No | ||
| integration_id | No |