Skip to main content
Glama

jira_add_comment

Add comments to Jira issues to provide updates, clarify requirements, or document progress on tasks and projects.

Instructions

Add a comment to a Jira issue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_keyYesIssue key (e.g., PROJ-123)
commentYesComment text

Implementation Reference

  • The main handler function that implements the jira_add_comment tool. It extracts issue_key and comment from arguments and calls self.jira_client.issue_add_comment to add the comment to the Jira issue.
    async def _add_comment(self, arguments: dict) -> List[TextContent]: """Add a comment to an issue""" issue_key = arguments["issue_key"] comment = arguments["comment"] self.jira_client.issue_add_comment(issue_key, comment) return [TextContent( type="text", text=f"Added comment to issue: {issue_key}" )]
  • The tool schema definition registered in list_tools(), specifying the input parameters: issue_key (string) and comment (string), both required.
    Tool( name="jira_add_comment", description="Add a comment to a Jira issue", inputSchema={ "type": "object", "properties": { "issue_key": { "type": "string", "description": "Issue key (e.g., PROJ-123)" }, "comment": { "type": "string", "description": "Comment text" } }, "required": ["issue_key", "comment"] } ),
  • Dispatch registration in the call_tool handler that routes calls to the jira_add_comment tool to the _add_comment method.
    elif name == "jira_add_comment": return await self._add_comment(arguments)

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/katsuhirohonda/jira-confluence-mcp'

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