getIssue
Retrieve specific Backlog issues by ID to access project details, status, and task information for tracking and 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 CallToolRequest handler for 'getIssue': validates input arguments using getIssueSchema, calls BacklogClient.getIssue, and returns the result as JSON 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/client.ts:54-64 (helper)Core implementation of getIssue: makes HTTP GET request to Backlog API endpoint /issues/{issueId} using axios and returns the issue data.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; } }
- src/index.ts:95-98 (registration)Tool registration in ListTools response: defines name, description, and input schema for the 'getIssue' tool.name: 'getIssue', description: '特定のBacklog課題を取得します', inputSchema: getIssueSchema, },
- src/backlog/schemas.ts:27-36 (schema)Input schema definition for getIssue tool: requires 'issueId' as string.export const getIssueSchema = { type: 'object', properties: { issueId: { type: 'string', description: '課題のID(例: PROJECT-1)', }, }, required: ['issueId'], } as const;
- src/backlog/schemas.ts:91-93 (schema)TypeScript interface for GetIssueArgs used in handler and client.export interface GetIssueArgs { issueId: string; }