Skip to main content
Glama
hackdonalds

JIRA MCP Server

by hackdonalds

jira_create_issue

Generate a new JIRA issue by specifying project key, issue type, summary, and optional details like description, assignee, and priority using the JIRA MCP Server.

Instructions

Create a new JIRA issue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assigneeNoAssignee account ID
descriptionNoIssue description
issueTypeYesIssue type (e.g., Bug, Task, Story)
priorityNoPriority name
projectYesProject key
summaryYesIssue summary

Implementation Reference

  • Inline async handler function that constructs issue data from inputs, calls jiraClient.createIssue, returns the created issue as JSON text content, with logging and error handling.
    async ({ project, issueType, summary, description, assignee, priority }) => { logger.info('Creating JIRA issue', { project, issueType, summary }); try { const issueData = { project: { key: project }, issuetype: { name: issueType }, summary: summary, }; if (description) issueData.description = description; if (assignee) issueData.assignee = { accountId: assignee }; if (priority) issueData.priority = { name: priority }; const createdIssue = await jiraClient.createIssue(issueData); logger.info('Successfully created issue', { issueKey: createdIssue.key, summary }); return { content: [{ type: 'text', text: JSON.stringify(createdIssue, null, 2) }] }; } catch (error) { logger.error('Failed to create issue', { project, summary, error: error.message }); throw error; } }
  • Zod input schema defining required project, issueType, summary, and optional description, assignee, priority with descriptions.
    inputSchema: { project: z.string().describe('Project key'), issueType: z.string().describe('Issue type (e.g., Bug, Task, Story)'), summary: z.string().describe('Issue summary'), description: z.string().optional().describe('Issue description'), assignee: z.string().optional().describe('Assignee account ID'), priority: z.string().optional().describe('Priority name') }
  • server.js:252-295 (registration)
    server.registerTool call registering 'jira_create_issue' with title, description, inputSchema, and inline handler function.
    server.registerTool( 'jira_create_issue', { title: 'Create JIRA Issue', description: 'Create a new JIRA issue', inputSchema: { project: z.string().describe('Project key'), issueType: z.string().describe('Issue type (e.g., Bug, Task, Story)'), summary: z.string().describe('Issue summary'), description: z.string().optional().describe('Issue description'), assignee: z.string().optional().describe('Assignee account ID'), priority: z.string().optional().describe('Priority name') } }, async ({ project, issueType, summary, description, assignee, priority }) => { logger.info('Creating JIRA issue', { project, issueType, summary }); try { const issueData = { project: { key: project }, issuetype: { name: issueType }, summary: summary, }; if (description) issueData.description = description; if (assignee) issueData.assignee = { accountId: assignee }; if (priority) issueData.priority = { name: priority }; const createdIssue = await jiraClient.createIssue(issueData); logger.info('Successfully created issue', { issueKey: createdIssue.key, summary }); return { content: [{ type: 'text', text: JSON.stringify(createdIssue, null, 2) }] }; } catch (error) { logger.error('Failed to create issue', { project, summary, error: error.message }); throw error; } } );

Other Tools

Related Tools

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/hackdonalds/jira-mcp'

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