jira_get_edit_meta
Retrieve editable fields and allowed values for existing Jira issues to prepare accurate updates and maintain data integrity.
Instructions
Get metadata for editing an issue - shows editable fields and allowed values for an existing issue
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueKey | Yes | The Jira issue key to get edit metadata for |
Implementation Reference
- src/index.ts:1140-1146 (handler)MCP tool handler case that validates input using GetEditMetaSchema, calls jiraClient.getEditMeta, and returns the metadata as JSON.case "jira_get_edit_meta": { const { issueKey } = GetEditMetaSchema.parse(args); const meta = await jiraClient.getEditMeta(issueKey); return { content: [{ type: "text", text: JSON.stringify(meta, null, 2) }], }; }
- src/index.ts:129-131 (schema)Zod schema used for input validation in the tool handler.const GetEditMetaSchema = z.object({ issueKey: z.string().describe("The Jira issue key to get edit metadata for"), });
- src/index.ts:475-489 (registration)Tool registration entry in the ListToolsRequestHandler, defining name, description, and input schema.{ name: "jira_get_edit_meta", description: "Get metadata for editing an issue - shows editable fields and allowed values for an existing issue", inputSchema: { type: "object", properties: { issueKey: { type: "string", description: "The Jira issue key to get edit metadata for", }, }, required: ["issueKey"], }, },
- src/jira-client.ts:365-367 (helper)JiraClient helper method that makes the REST API call to /rest/api/2/issue/{issueKey}/editmeta to fetch edit metadata.async getEditMeta(issueKey: string): Promise<unknown> { return this.request<unknown>(`/issue/${issueKey}/editmeta`); }