updateIssue
Modify Backlog issue details including status, description, and comments using the issue ID to track project tasks.
Instructions
Backlog課題を更新します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueId | Yes | 課題のID(例: PROJECT-1) | |
| status | No | 新しいステータス | |
| description | No | 課題の説明 | |
| comment | No | 更新時のコメント |
Implementation Reference
- src/backlog/client.ts:69-93 (handler)Core handler function that performs the PATCH request to update a Backlog issue using the provided arguments.async updateIssue(args: UpdateIssueArgs): Promise<BacklogIssue> { try { const params: Record<string, any> = {}; if (args.status) { params.statusId = this.getStatusId(args.status); } if (args.comment) { params.comment = args.comment; } if (args.description !== undefined) { params.description = args.description; } const response = await this.client.patch(`/issues/${args.issueId}`, params); return response.data; } catch (error) { if (axios.isAxiosError(error)) { throw new Error(`Backlog API error: ${error.response?.data.message ?? error.message}`); } throw error; } }
- src/index.ts:163-180 (handler)MCP server handler for the 'updateIssue' tool call, which validates arguments and delegates to BacklogClient.updateIssue.case 'updateIssue': { const args = this.validateAndCastArguments<UpdateIssueArgs>( request.params.arguments, updateIssueSchema ); return { content: [ { type: 'text', text: JSON.stringify( await this.backlogClient.updateIssue(args), null, 2 ), }, ], }; }
- src/index.ts:99-103 (registration)Registration of the 'updateIssue' tool in the ListTools response, including name, description, and input schema.{ name: 'updateIssue', description: 'Backlog課題を更新します', inputSchema: updateIssueSchema, },
- src/backlog/schemas.ts:39-60 (schema)Input schema definition for the updateIssue tool, used for validation.export const updateIssueSchema = { type: 'object', properties: { issueId: { type: 'string', description: '課題のID(例: PROJECT-1)', }, status: { type: 'string', description: '新しいステータス', }, description: { type: 'string', description: '課題の説明', }, comment: { type: 'string', description: '更新時のコメント', }, }, required: ['issueId'], } as const;
- src/backlog/schemas.ts:95-100 (schema)TypeScript interface defining the arguments for updateIssue.export interface UpdateIssueArgs { issueId: string; status?: string; description?: string; comment?: string; }