list_issues
Retrieve and display issues from Zoho Projects, allowing filtering by project ID and pagination for efficient issue management.
Instructions
List issues from a project or portal
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project ID (optional for portal-level) | |
| page | No | Page number | |
| per_page | No | Items per page |
Implementation Reference
- src/index.ts:779-791 (handler)The handler function that executes the 'list_issues' tool logic by constructing the appropriate Zoho API endpoint based on project_id and pagination parameters, fetching data via makeRequest, and returning it as formatted text content.private async listIssues( projectId?: string, page: number = 1, perPage: number = 10 ) { const endpoint = projectId ? `/portal/${this.config.portalId}/projects/${projectId}/issues?page=${page}&per_page=${perPage}` : `/portal/${this.config.portalId}/issues?page=${page}&per_page=${perPage}`; const data = await this.makeRequest(endpoint); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; }
- src/index.ts:384-398 (schema)Input schema definition for the 'list_issues' tool, specifying parameters project_id (optional), page, and per_page with types and descriptions.inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID (optional for portal-level)", }, page: { type: "number", description: "Page number", default: 1 }, per_page: { type: "number", description: "Items per page", default: 10, }, }, },
- src/index.ts:381-399 (registration)Registration of the 'list_issues' tool in the MCP server's tools array, including name, description, and input schema.{ name: "list_issues", description: "List issues from a project or portal", inputSchema: { type: "object", properties: { project_id: { type: "string", description: "Project ID (optional for portal-level)", }, page: { type: "number", description: "Page number", default: 1 }, per_page: { type: "number", description: "Items per page", default: 10, }, }, }, },
- src/index.ts:584-585 (registration)Tool dispatch in the request handler switch statement, routing 'list_issues' calls to the listIssues method.case "list_issues": return await this.listIssues(params.project_id, params.page, params.per_page);