Create or update defect
qase_defect_upsertCreate or update Qase defects: include an ID to update an existing defect, or omit it and supply title, actual result, and severity to create one.
Instructions
Create or update a defect: with id it updates, without it creates, and then title, actual_result and severity are required. Severity and status are labels ("blocker", "open"…), mapped for you. For a defect born from a specific test failure use qase_triage_defect; search with qql_search before filing a duplicate. Cost: one API call, about 0.5s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Defect ID — if provided, updates; if omitted, creates | |
| code | Yes | Project code, e.g. DEMO | |
| tags | No | Tag names, e.g. ["regression", "payments"] | |
| title | Yes | Defect title | |
| status | No | Set to "resolved" to resolve the defect | |
| severity | No | How bad the defect is — required when creating a defect | |
| attachments | No | Hashes from qase_attachment_upload | |
| custom_field | No | Custom fields by ID, e.g. { "12": "value" } | |
| actual_result | No | What actually happened — required when creating a defect |