Skip to main content
Glama

get_transitions

Retrieve available status transitions for a Jira issue to determine next workflow steps and update issue states.

Instructions

Get available status transitions for a Jira issue

Input Schema

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

Implementation Reference

  • The core handler function that implements the get_transitions tool logic: fetches available transitions for a Jira issue using the API and returns formatted text 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,
        };
      }
    }
  • Defines the tool schema including name, description, and inputSchema requiring 'issueKey'.
    {
      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)
    Registers the tool in the MCP server by handling the CallToolRequest for 'get_transitions' and delegating to the handler.
    case 'get_transitions':
      return this.transitionHandlers.handleGetTransitions(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