markBugResolved
Mark a bug as resolved in ZenTao project management system by updating its status to fixed and adding resolution comments.
Instructions
Mark a bug as resolved (resolution=fixed).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bugId | Yes | Bug ID (required) | |
| comment | No | Resolution comment |
Implementation Reference
- src/zentao-mcp-server.js:733-748 (handler)Executes the markBugResolved tool by sending a POST request to the ZenTao API endpoint `/bugs/{bugId}/resolve` with `{ resolution: 'fixed', comment }` and returns the API response.if (name === "markBugResolved") { const { bugId, comment } = args; const response = await callZenTao({ path: `bugs/${bugId}/resolve`, method: "POST", body: { resolution: "fixed", comment }, }); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
- src/zentao-mcp-server.js:530-538 (schema)Defines the input schema for the markBugResolved tool: requires bugId (number), optional comment (string).inputSchema: { type: "object", properties: { bugId: { type: "number", description: "Bug ID (required)" }, comment: { type: "string", description: "Resolution comment" }, }, required: ["bugId"], additionalProperties: false, },
- src/zentao-mcp-server.js:527-539 (registration)Registers the markBugResolved tool in the tools list returned by listTools, including name, description, and input schema.{ name: "markBugResolved", description: "Mark a bug as resolved (resolution=fixed).", inputSchema: { type: "object", properties: { bugId: { type: "number", description: "Bug ID (required)" }, comment: { type: "string", description: "Resolution comment" }, }, required: ["bugId"], additionalProperties: false, }, },