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
| Name | Required | Description | Default |
|---|---|---|---|
| issueKey | Yes | The Jira issue key | |
| assignee | Yes | Username to assign (null to unassign) |
Implementation Reference
- src/jira-client.ts:80-85 (handler)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 }), }); }
- src/index.ts:1004-1017 (handler)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`, }, ], }; }
- src/index.ts:82-88 (schema)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"], }, },