QMetry: Update Issue
qmetry_update_issueUpdate any field of a QMetry issue by providing the DefectId, including summary, priority, type, owner, or affected releases.
Instructions
Update an existing QMetry issue by DefectId and/or entityKey.
Toolset: Issues
Parameters:
DefectId (number) required: ID of the defect/issue to be updated. CRITICAL: the parameter name is 'DefectId' (capital D) — do NOT use 'defectId', 'issueId', 'id', or other variants. Accepts a string or number.
entityKey (string): Entity Key of the defect/issue to be updated
issueType (number): Issue type ID (e.g. Bug, Enhancement, etc.)
issuePriority (number): Issue priority ID (e.g. High, Medium, Low, etc.)
summary (string): Summary or title of the defect/issue
description (string): Detailed description of the defect/issue
issueOwner (number): Owner/user ID for the issue
affectedRelease (number): Release IDs affected by this issue
affectedCycles (number): Cycle IDs affected by this issue
Output Description: JSON object with update status and details.
Use Cases: 1. Update issue summary (title) 2. Change issue priority, type, or owner 3. Update affected release or cycles 4. Update description or environment 5. Bulk update using DefectId and/or entityKey
Examples:
Update issue summary
{
"DefectId": 118150,
"summary": "Money withdrawal is success even if insufficient amount_updated"
}Expected Output: Issue summary updated successfully.
Update issue priority
{
"DefectId": 118150,
"issuePriority": 189340
}Expected Output: Issue priority updated successfully.
Update issue type
{
"DefectId": 118150,
"issueType": 189337
}Expected Output: Issue type updated successfully.
Update affected release
{
"DefectId": 118150,
"affectedRelease": 3730
}Expected Output: Affected release updated successfully.
Hints: 1. To get the DefectId, call the Issue/Fetch issue tool and use data[].id from the response. 2. if you have pass issue key (VT-IS-5, MAC-IS-10 etc.) then first fetch issue by issue key to get issue id. 3. Along with DefectId, pass only those fields which are to be updated. 4. Refer to the Create Issue tool for valid field mappings and values. 5. You can update summary, priority, type, affectedRelease, affectedCycles, description, sync_with, issueOwner, component, environment, tcRunID, etc. 6. If you provide entityKey, it will be used for additional validation but DefectId is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | No | Summary or title of the defect/issue | |
| DefectId | Yes | ID of the defect/issue to be updated. CRITICAL: the parameter name is 'DefectId' (capital D) — do NOT use 'defectId', 'issueId', 'id', or other variants. Accepts a string or number. | |
| entityKey | No | Entity Key of the defect/issue to be updated | |
| issueType | No | Issue type ID (e.g. Bug, Enhancement, etc.) | |
| issueOwner | No | Owner/user ID for the issue | |
| description | No | Detailed description of the defect/issue | |
| issuePriority | No | Issue priority ID (e.g. High, Medium, Low, etc.) | |
| affectedCycles | No | Cycle IDs affected by this issue | |
| affectedRelease | No | Release IDs affected by this issue |