Skip to main content
Glama

add_issue_comment

Add a comment to a Backlog issue, specify content, notify users, and include attachments for enhanced collaboration and issue tracking.

Instructions

Adds a comment to an issue

Input Schema

NameRequiredDescriptionDefault
attachmentIdNoAttachment IDs
contentYesComment content
issueIdOrKeyYesIssue ID or issue key
notifiedUserIdNoUser IDs to notify

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "attachmentId": { "description": "Attachment IDs", "items": { "type": "number" }, "type": "array" }, "content": { "description": "Comment content", "type": "string" }, "issueIdOrKey": { "description": "Issue ID or issue key", "type": [ "string", "number" ] }, "notifiedUserId": { "description": "User IDs to notify", "items": { "type": "number" }, "type": "array" } }, "required": [ "issueIdOrKey", "content" ], "type": "object" }

Implementation Reference

  • The asynchronous handler function that resolves the issue ID or key using resolveIdOrKey and calls backlog.postIssueComments to add the comment.
    handler: async ({ issueId, issueKey, content, notifiedUserId, attachmentId, }) => { const result = resolveIdOrKey('issue', { id: issueId, key: issueKey }, t); if (!result.ok) { throw result.error; } return backlog.postIssueComments(result.value, { content, notifiedUserId, attachmentId, }); },
  • Input schema for the add_issue_comment tool, defining parameters like issueId/key, content, notified users, and attachments using Zod.
    const addIssueCommentSchema = buildToolSchema((t) => ({ issueId: z .number() .optional() .describe( t( 'TOOL_ADD_ISSUE_COMMENT_ID', 'The numeric ID of the issue (e.g., 12345)' ) ), issueKey: z .string() .optional() .describe( t('TOOL_ADD_ISSUE_COMMENT_KEY', "The key of the issue (e.g., 'PROJ-123')") ), content: z .string() .describe(t('TOOL_ADD_ISSUE_COMMENT_CONTENT', 'Comment content')), notifiedUserId: z .array(z.number()) .optional() .describe( t('TOOL_ADD_ISSUE_COMMENT_NOTIFIED_USER_ID', 'User IDs to notify') ), attachmentId: z .array(z.number()) .optional() .describe(t('TOOL_ADD_ISSUE_COMMENT_ATTACHMENT_ID', 'Attachment IDs')), }));
  • The add_issue_comment tool is registered by calling addIssueCommentTool and adding it to the 'issue' toolset in the allTools function.
    addIssueCommentTool(backlog, helper),
  • src/tools/tools.ts:5-5 (registration)
    Import of the addIssueCommentTool factory function.
    import { addIssueCommentTool } from './addIssueComment.js';

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/nulab/backlog-mcp-server'

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