get_project_test_plans
Retrieve all test plans for a specific Jira project to manage testing activities and track test coverage across development cycles.
Instructions
Get all test plans for a specific project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxResults | No | Maximum number of results to return | |
| projectKey | Yes | The Jira project key (e.g., "PROJ") |
Implementation Reference
- src/index.ts:750-763 (handler)MCP tool handler that extracts input arguments, invokes the XrayClient method to fetch test plans by project, and formats the result as MCP content.case 'get_project_test_plans': { const result = await xrayClient.getTestPlansByProject( args.projectKey as string, args.maxResults as number | undefined ); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:328-346 (schema)Tool metadata registration including name, description, and input schema definition for the get_project_test_plans tool.{ name: 'get_project_test_plans', description: 'Get all test plans for a specific project', inputSchema: { type: 'object', properties: { projectKey: { type: 'string', description: 'The Jira project key (e.g., "PROJ")', }, maxResults: { type: 'number', description: 'Maximum number of results to return', default: 50, }, }, required: ['projectKey'], }, },
- src/xray-client.ts:719-722 (helper)Helper method in XrayClient class that generates JQL query for test plans in a specific project and delegates to the generic searchTestPlans method.async getTestPlansByProject(projectKey: string, maxResults: number = 50): Promise<any> { const jql = `project = '${projectKey}'`; return this.searchTestPlans(jql, maxResults); }