Skip to main content
Glama

jira_assign_issue

Assign or unassign Jira issues to specific users by providing the issue key and assignee username. Use this tool to manage issue ownership in your Jira workflow.

Instructions

Assign or unassign a Jira issue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueKeyYesThe Jira issue key
assigneeYesUsername to assign (null to unassign)

Implementation Reference

  • Core implementation of the jira_assign_issue tool: calls Jira REST API to assign or unassign an issue by PUT to /issue/{issueKey}/assignee with {name: username} (null to unassign).
    async assignIssue(issueKey: string, username: string | null): Promise<void> { await this.request<void>(`/issue/${issueKey}/assignee`, { method: "PUT", body: JSON.stringify({ name: username }), }); }
  • MCP CallToolRequestHandler switch case for 'jira_assign_issue': validates arguments with AssignIssueSchema and delegates to jiraClient.assignIssue, returns success message.
    case "jira_assign_issue": { const { issueKey, assignee } = AssignIssueSchema.parse(args); await jiraClient.assignIssue(issueKey, assignee); return { content: [ { type: "text", text: assignee ? `Issue ${issueKey} assigned to ${assignee}` : `Issue ${issueKey} unassigned`, }, ], }; }
  • Zod input schema definition for the jira_assign_issue tool used for validation in the handler.
    const AssignIssueSchema = z.object({ issueKey: z.string().describe("The Jira issue key"), assignee: z .string() .nullable() .describe("Username to assign (null to unassign)"), });
  • src/index.ts:309-323 (registration)
    Tool registration entry returned by ListToolsRequestHandler, including name, description, and JSON input schema.
    { name: "jira_assign_issue", description: "Assign or unassign a Jira issue", inputSchema: { type: "object", properties: { issueKey: { type: "string", description: "The Jira issue key" }, assignee: { type: ["string", "null"], description: "Username to assign (null to unassign)", }, }, required: ["issueKey", "assignee"], }, },

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