searchIssues
Search Backlog issues by project, keywords, and status to find specific tasks or track progress in your workflow.
Instructions
Backlogの課題を検索します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | プロジェクトID(数値) | |
| keyword | No | 検索キーワード | |
| status | No | ステータス(未対応、処理中、処理済み、完了) |
Implementation Reference
- src/index.ts:125-142 (handler)MCP CallToolRequest handler specifically for 'searchIssues': validates input arguments using searchIssuesSchema and delegates execution to BacklogClient.searchIssuescase 'searchIssues': { const args = this.validateAndCastArguments<SearchIssuesArgs>( request.params.arguments, searchIssuesSchema ); return { content: [ { type: 'text', text: JSON.stringify( await this.backlogClient.searchIssues(args), null, 2 ), }, ], }; }
- src/backlog/client.ts:33-49 (handler)Core handler function in BacklogClient that executes the searchIssues tool logic by calling Backlog API /issues endpointasync searchIssues(args: SearchIssuesArgs): Promise<BacklogIssue[]> { try { const response = await this.client.get('/issues', { params: { 'projectId[]': [args.projectId], keyword: args.keyword, 'statusId[]': args.status?.map(this.getStatusId), }, }); return response.data; } catch (error) { if (axios.isAxiosError(error)) { throw new Error(`Backlog API error: ${error.response?.data.message ?? error.message}`); } throw error; } }
- src/backlog/schemas.ts:4-24 (schema)Input schema (JSON Schema) for the searchIssues tool defining parameters: projectId (required), keyword, status arrayexport const searchIssuesSchema = { type: 'object', properties: { projectId: { type: 'number', description: 'プロジェクトID(数値)', }, keyword: { type: 'string', description: '検索キーワード', }, status: { type: 'array', items: { type: 'string', }, description: 'ステータス(未対応、処理中、処理済み、完了)', }, }, required: ['projectId'], } as const;
- src/index.ts:90-93 (registration)Registration of the searchIssues tool in the ListTools response, including name, description, and inputSchema referencename: 'searchIssues', description: 'Backlogの課題を検索します', inputSchema: searchIssuesSchema, },
- src/backlog/schemas.ts:85-89 (schema)TypeScript interface definition for SearchIssuesArgs used in handler validation and typingexport interface SearchIssuesArgs { projectId: number; keyword?: string; status?: string[]; }