ado_create_bug_from_test
WHEN: a test case failed and the failure must become a Bug in Azure DevOps. Triggers: 'open a bug for this failed test', 'crée le bug depuis le test', 'file the defect'. Builds the Bug from the test case: its steps become the reproduction steps, observed is what actually happened, and it is linked (Related) to the test case and to the requirement under test. observed must be what was really seen: no personal data. SAFE BY DEFAULT: confirm=false only shows the Bug. Call again with confirm=true after the user agreed. An open Bug with the same title is not duplicated. Needs a PAT with Work Items (Read & write).
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": {
"testCaseId": "<testCaseId>",
"observed": "<observed>"
},
"name": "ado_create_bug_from_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional: Bug title. Default: '[Test failed] ' and the test case title. | |
| confirm | No | false (default): preview only. true: create. Only after the user agreed. | |
| project | No | Azure DevOps project. Falls back to DEVOPS_PROJECT. | |
| expected | No | Optional: what was expected, if the test case does not say it clearly. | |
| observed | Yes | What was observed when it failed: the message, the wrong value, the screen. | |
| severity | No | Optional: 1-Critical, 2-High (default), 3-Medium, 4-Low. | |
| testCaseId | Yes | Id of the Test Case work item that failed. |