get_transitions
Retrieve available status transitions for a Jira issue to determine next workflow steps and manage issue progression through different states.
Instructions
Get available status transitions for a Jira issue
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueKey | Yes | The issue key (e.g., PROJ-123) |
Implementation Reference
- src/handlers/transition-handlers.ts:7-36 (handler)The handler function that executes the get_transitions tool: fetches available transitions for a Jira issue using the API and formats the response.async handleGetTransitions(args: any) { try { const { issueKey } = args; if (!issueKey) { throw new Error('issueKey is required'); } const result = await this.apiClient.get(`/issue/${issueKey}/transitions`); return { content: [ { type: 'text', text: JiraFormatters.formatTransitions(result.transitions), }, ], }; } catch (error: any) { return { content: [ { type: 'text', text: JiraFormatters.formatError(error), }, ], isError: true, }; } }
- src/tools/definitions.ts:224-236 (schema)The input schema definition for the get_transitions tool in the tool definitions array.name: 'get_transitions', description: 'Get available status transitions for a Jira issue', inputSchema: { type: 'object', properties: { issueKey: { type: 'string', description: 'The issue key (e.g., PROJ-123)', }, }, required: ['issueKey'], }, },
- src/index.ts:128-129 (registration)The switch case registration that dispatches get_transitions tool calls to the appropriate handler method.case 'get_transitions': return this.transitionHandlers.handleGetTransitions(request.params.arguments);