Skip to main content
Glama

get_issue

Retrieve detailed information about a Jira issue using its key or ID to access status, description, assignee, and other issue data.

Instructions

Get detailed information about a Jira issue by its key or ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issueKeyYesThe issue key (e.g., PROJ-123) or issue ID (e.g., 378150)

Implementation Reference

  • The main handler function that fetches the Jira issue by key using the API client, retrieves field metadata, formats the issue details, and returns the formatted content or error response.
    async handleGetIssue(args: any) { try { const { issueKey } = args; if (!issueKey) { throw new Error('issueKey is required'); } const issue = await this.apiClient.get(`/issue/${issueKey}`); const fieldMetadata = await this.getFieldMetadata(); return { content: [ { type: 'text', text: JiraFormatters.formatIssue(issue, fieldMetadata), }, ], }; } catch (error: any) { return { content: [ { type: 'text', text: JiraFormatters.formatError(error), }, ], isError: true, }; } }
  • Defines the tool schema including name, description, and input schema requiring 'issueKey' parameter.
    { name: 'get_issue', description: 'Get detailed information about a Jira issue by its key or ID', inputSchema: { type: 'object', properties: { issueKey: { type: 'string', description: 'The issue key (e.g., PROJ-123) or issue ID (e.g., 378150)', }, }, required: ['issueKey'], }, },
  • src/index.ts:98-99 (registration)
    Registers the 'get_issue' tool name in the switch statement to route calls to the IssueHandlers.handleGetIssue method.
    case 'get_issue': return this.issueHandlers.handleGetIssue(request.params.arguments);

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

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