Skip to main content
Glama

jira_get_my_issues

Retrieve your assigned Jira issues sorted by most recent updates. Supports pagination and field selection to access specific issue details.

Instructions

Retrieves issues assigned to current user, sorted by most recently updated first. Supports pagination and field selection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expandNoAdditional details to include for each issue
fieldsNoSpecific fields to retrieve for each issue
maxResultsNoMaximum number of results to return
startAtNoIndex of first result to return (for pagination)

Implementation Reference

  • The main handler function that validates input, calls the getMyIssues API helper, logs progress, formats the response, and handles errors.
    export async function handleGetMyIssues(input: unknown): Promise<McpToolResponse> { try { const validated = validateInput(GetMyIssuesInputSchema, input); log.info('Getting issues assigned to current user...'); const getParams: any = {}; if (validated.nextPageToken !== undefined) getParams.nextPageToken = validated.nextPageToken; if (validated.maxResults !== undefined) getParams.maxResults = validated.maxResults; if (validated.fields !== undefined) getParams.fields = validated.fields; if (validated.expand !== undefined) getParams.expand = validated.expand; const result = await getMyIssues(getParams); log.info( `Found ${result.total ?? 0} issue(s) assigned to you, showing ${result.issues.length}` ); return formatSearchResultsResponse(result); } catch (error) { log.error('Error in handleGetMyIssues:', error); return handleError(error); } }
  • Zod schema for validating the input parameters of the jira_get_my_issues tool.
    export const GetMyIssuesInputSchema = z.object({ nextPageToken: z .string() .optional() .describe( 'Token for pagination. Omit for first page, use value from previous response for next page.' ), maxResults: z .number() .min(1) .max(100) .default(50) .describe('Maximum number of results to return per page'), fields: z.array(z.string()).optional().describe('Specific fields to retrieve'), expand: z.array(z.string()).optional().describe('Additional details to include'), });
  • API helper function that constructs the JQL query for user's assigned issues and calls the generic searchIssues function.
    export async function getMyIssues( options: { nextPageToken?: string; maxResults?: number; fields?: string[]; expand?: string[]; } = {} ): Promise<JiraSearchResult> { const jql = `assignee = currentUser() ORDER BY updated DESC`; const searchParams: any = { jql, maxResults: options.maxResults || 50, }; if (options.nextPageToken !== undefined) searchParams.nextPageToken = options.nextPageToken; if (options.fields !== undefined) searchParams.fields = options.fields; if (options.expand !== undefined) searchParams.expand = options.expand; return await searchIssues(searchParams); }
  • Tool object definition including the name 'jira_get_my_issues', description, and MCP-compatible inputSchema. Exported and re-exported from src/tools/index.ts.
    export const getMyIssuesTool: Tool = { name: TOOL_NAMES.GET_MY_ISSUES, description: 'Retrieves issues assigned to current user, sorted by most recently updated first. Supports pagination and field selection. For pagination, use nextPageToken from previous response.', inputSchema: { type: 'object', properties: { nextPageToken: { type: 'string', description: 'Token for pagination. Omit for first page, use value from previous response for next page.', }, maxResults: { type: 'number', description: 'Maximum number of results to return per page', minimum: 1, maximum: 100, default: 50, }, fields: { type: 'array', items: { type: 'string' }, description: 'Specific fields to retrieve for each issue', }, expand: { type: 'array', items: { type: 'string' }, description: 'Additional details to include for each issue', default: [], }, }, required: [], }, };
  • Constant definition for the tool name used in the tool registration.
    GET_MY_ISSUES: 'jira_get_my_issues',

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

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