Skip to main content
Glama

jira_get_comments

Retrieve comments from a Jira issue to track discussions and updates. Provide the issue key to access all associated comments.

Instructions

Get comments on a Jira issue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueKeyYesThe Jira issue key

Implementation Reference

  • MCP tool handler for jira_get_comments: parses input, calls jiraClient.getComments, returns JSON stringified comments.
    case "jira_get_comments": { const { issueKey } = GetCommentsSchema.parse(args); const comments = await jiraClient.getComments(issueKey); return { content: [{ type: "text", text: JSON.stringify(comments, null, 2) }], }; }
  • src/index.ts:324-334 (registration)
    Tool registration in ListTools response, defines name, description, and input schema.
    { name: "jira_get_comments", description: "Get comments on a Jira issue", inputSchema: { type: "object", properties: { issueKey: { type: "string", description: "The Jira issue key" }, }, required: ["issueKey"], }, },
  • Zod schema for input validation used in the handler.
    const GetCommentsSchema = z.object({ issueKey: z.string().describe("The Jira issue key"), });
  • Core implementation: GET request to Jira REST API /issue/{issueKey}/comment to fetch comments.
    async getComments( issueKey: string ): Promise<{ comments: JiraComment[]; total: number }> { return this.request<{ comments: JiraComment[]; total: number }>( `/issue/${issueKey}/comment` ); }
  • TypeScript interface defining the structure of JiraComment objects returned by the API.
    export interface JiraComment { id: string; self: string; body: string; author: { displayName: string; name: string; }; created: string; updated: string; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yogeshhrathod/JiraMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server