Triage failure into defect
qase_triage_defectCreate a defect from a test failure, capturing title, severity, and actual results so triage context is preserved. File one defect per distinct cause; reference run or result IDs in actual_result.
Instructions
Create a defect from a test failure with the context written into it; title, actual_result and severity are required. The API has no way to attach runs or results to a defect — reference them in actual_result. For a defect unrelated to a failure use qase_defect_upsert. Cost: one API call, about 0.5s; file one defect per distinct cause.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Project code, e.g. DEMO | |
| tags | No | Tag names, e.g. ["regression", "payments"] | |
| title | Yes | Defect title | |
| severity | Yes | Required by the API | |
| attachments | No | Hashes from qase_attachment_upload | |
| description | No | Extra context beyond the observed behavior | |
| custom_field | No | Custom fields by ID, e.g. { "12": "value" } | |
| actual_result | Yes | Observed behavior. Required by the API |