Add Comment
jira_add_commentAdd comments to Jira issues with optional visibility controls and Service Desk support for customer-facing or internal notes.
Instructions
Add a comment to a Jira issue.
Args: ctx: The FastMCP context. issue_key: Jira issue key. body: Comment text in Markdown. visibility: (Optional) Comment visibility as JSON string. public: (Optional) For JSM issues. True = customer-visible, False = internal/agent-only. Uses ServiceDesk API.
Returns: JSON string representing the added comment object.
Raises: ValueError: If in read-only mode or Jira client unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_key | Yes | Jira issue key (e.g., 'PROJ-123', 'ACV2-642') | |
| body | Yes | Comment text in Markdown format | |
| visibility | No | (Optional) Comment visibility as JSON string (e.g. '{"type":"group","value":"jira-users"}') | |
| public | No | (Optional) For JSM/Service Desk issues only. Set to true for customer-visible comment, false for internal agent-only comment. Uses the ServiceDesk API (plain text, not Markdown). Cannot be combined with visibility. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |