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
| Name | Required | Description | Default |
|---|---|---|---|
| issue_key | Yes | Issue key (e.g., PROJ-123) | |
| comment | Yes | Comment text |
Implementation Reference
- src/jira_server.py:333-343 (handler)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}" )]
- src/jira_server.py:145-162 (schema)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"] } ),
- src/jira_server.py:205-206 (registration)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)