getIssue
Retrieve specific Backlog issues by ID to access detailed information, status updates, and project tracking data for effective issue management.
Instructions
特定のBacklog課題を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueId | Yes | 課題のID(例: PROJECT-1) |
Implementation Reference
- src/index.ts:144-161 (handler)MCP CallTool handler for 'getIssue': validates arguments using getIssueSchema, calls BacklogClient.getIssue(args), and returns the result as JSON string in text content.case 'getIssue': { const args = this.validateAndCastArguments<GetIssueArgs>( request.params.arguments, getIssueSchema ); return { content: [ { type: 'text', text: JSON.stringify( await this.backlogClient.getIssue(args), null, 2 ), }, ], }; }
- src/backlog/schemas.ts:27-36 (schema)JSON Schema definition for the input arguments of the getIssue tool, requiring 'issueId'.export const getIssueSchema = { type: 'object', properties: { issueId: { type: 'string', description: '課題のID(例: PROJECT-1)', }, }, required: ['issueId'], } as const;
- src/index.ts:94-98 (registration)Registration of the 'getIssue' tool in the ListTools response, including name, description, and input schema reference.{ name: 'getIssue', description: '特定のBacklog課題を取得します', inputSchema: getIssueSchema, },
- src/backlog/client.ts:54-64 (helper)Core helper function in BacklogClient that performs the actual API GET request to fetch the issue by ID and handles errors.async getIssue(args: GetIssueArgs): Promise<BacklogIssue> { try { const response = await this.client.get(`/issues/${args.issueId}`); return response.data; } catch (error) { if (axios.isAxiosError(error)) { throw new Error(`Backlog API error: ${error.response?.data.message ?? error.message}`); } throw error; } }