Skip to main content
Glama

jira_add_watcher

Add a user as a watcher to a Jira issue to keep them informed about updates and changes.

Instructions

Add a watcher to a Jira issue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueKeyYesThe Jira issue key
usernameYesUsername to add as watcher

Implementation Reference

  • Handler case for jira_add_watcher tool that parses arguments, calls jiraClient.addWatcher, and returns success message
    case "jira_add_watcher": { const { issueKey, username } = AddWatcherSchema.parse(args); await jiraClient.addWatcher(issueKey, username); return { content: [ { type: "text", text: `Added ${username} as watcher to ${issueKey}`, }, ], }; }
  • Core implementation of adding a watcher to a Jira issue via POST to /issue/{issueKey}/watchers endpoint
    async addWatcher(issueKey: string, username: string): Promise<void> { await this.request<void>(`/issue/${issueKey}/watchers`, { method: "POST", body: JSON.stringify(username), }); }
  • Zod input schema for validating jira_add_watcher tool parameters
    const AddWatcherSchema = z.object({ issueKey: z.string().describe("The Jira issue key"), username: z.string().describe("Username to add as watcher"), });
  • src/index.ts:426-439 (registration)
    Tool registration in ListTools response including name, description, and JSON input schema
    name: "jira_add_watcher", description: "Add a watcher to a Jira issue", inputSchema: { type: "object", properties: { issueKey: { type: "string", description: "The Jira issue key" }, username: { type: "string", description: "Username to add as watcher", }, }, required: ["issueKey", "username"], }, },

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