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
| Name | Required | Description | Default |
|---|---|---|---|
| issueKey | Yes | The issue key (e.g., PROJ-123) or issue ID (e.g., 378150) |
Implementation Reference
- src/handlers/issue-handlers.ts:36-66 (handler)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, }; } }
- src/tools/definitions.ts:3-16 (schema)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);