jira_get_fields
Retrieve all available field information including custom fields, showing IDs, names, and types for Jira instance configuration and integration.
Instructions
Get all available fields including custom fields - shows field IDs, names, and types
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1166-1171 (handler)MCP tool handler for 'jira_get_fields' that invokes jiraClient.getFields() and returns the fields as JSON string.case "jira_get_fields": { const fields = await jiraClient.getFields(); return { content: [{ type: "text", text: JSON.stringify(fields, null, 2) }], }; }
- src/index.ts:520-528 (registration)Tool registration in ListTools handler, including name, description, and empty input schema (no parameters required).{ name: "jira_get_fields", description: "Get all available fields including custom fields - shows field IDs, names, and types", inputSchema: { type: "object", properties: {}, }, },
- src/jira-client.ts:389-406 (helper)Core implementation of getFields() in JiraClient class, which makes an API request to Jira's /field endpoint to fetch all available fields.// Get all fields (including custom fields) async getFields(): Promise< Array<{ id: string; name: string; custom: boolean; schema?: { type: string }; }> > { return this.request< Array<{ id: string; name: string; custom: boolean; schema?: { type: string }; }> >("/field"); }