update_issue_type
Modify an existing issue type by updating its metadata, including name, description, and status, within a specified project using the Plane MCP Server.
Instructions
Update an existing issue type
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue_type_data | Yes | The fields to update on the issue type | |
| project_id | Yes | The uuid identifier of the project containing the issue type | |
| type_id | Yes | The uuid identifier of the issue type to update |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"issue_type_data": {
"additionalProperties": false,
"description": "The fields to update on the issue type",
"properties": {
"created_at": {
"format": "date-time",
"type": "string"
},
"created_by": {
"format": "uuid",
"type": "string"
},
"deleted_at": {
"format": "date-time",
"type": "string"
},
"description": {
"type": "string"
},
"external_id": {
"maxLength": 255,
"type": "string"
},
"external_source": {
"maxLength": 255,
"type": "string"
},
"id": {
"format": "uuid",
"type": "string"
},
"is_active": {
"type": "boolean"
},
"is_default": {
"type": "boolean"
},
"level": {
"type": "integer"
},
"logo_props": {},
"name": {
"maxLength": 255,
"type": "string"
},
"project_ids": {
"items": {
"format": "uuid",
"type": "string"
},
"type": "array"
},
"updated_at": {
"format": "date-time",
"type": "string"
},
"updated_by": {
"format": "uuid",
"type": "string"
},
"workspace": {
"format": "uuid",
"type": "string"
}
},
"type": "object"
},
"project_id": {
"description": "The uuid identifier of the project containing the issue type",
"type": "string"
},
"type_id": {
"description": "The uuid identifier of the issue type to update",
"type": "string"
}
},
"required": [
"project_id",
"type_id",
"issue_type_data"
],
"type": "object"
}
Implementation Reference
- src/tools/metadata.ts:88-102 (handler)The handler function that performs the PATCH request to update an issue type via the Plane API and returns the response as formatted JSON text.async ({ project_id, type_id, issue_type_data }) => { const response = await makePlaneRequest( "PATCH", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issue-types/${type_id}/`, issue_type_data ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
- src/tools/metadata.ts:83-87 (schema)Zod input schema for the update_issue_type tool, specifying project_id, type_id, and partial IssueTypeSchema for updates.{ project_id: z.string().describe("The uuid identifier of the project containing the issue type"), type_id: z.string().describe("The uuid identifier of the issue type to update"), issue_type_data: IssueTypeSchema.partial().describe("The fields to update on the issue type"), },
- src/tools/metadata.ts:80-103 (registration)The MCP server.tool registration for update_issue_type, including name, description, input schema, and handler function.server.tool( "update_issue_type", "Update an existing issue type", { project_id: z.string().describe("The uuid identifier of the project containing the issue type"), type_id: z.string().describe("The uuid identifier of the issue type to update"), issue_type_data: IssueTypeSchema.partial().describe("The fields to update on the issue type"), }, async ({ project_id, type_id, issue_type_data }) => { const response = await makePlaneRequest( "PATCH", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issue-types/${type_id}/`, issue_type_data ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; } );
- src/schemas.ts:86-104 (schema)The base Zod schema for IssueTypeAPI (imported as IssueTypeSchema), which defines the full structure of an issue type and is used partially in the tool's input schema.export const IssueTypeAPI = z.object({ created_at: z.string().datetime({ offset: true }).readonly(), created_by: z.string().uuid().readonly(), deleted_at: z.string().datetime({ offset: true }).readonly(), description: z.string().optional(), external_id: z.string().max(255).optional(), external_source: z.string().max(255).optional(), id: z.string().uuid().readonly(), is_active: z.boolean().optional(), is_default: z.boolean().readonly(), level: z.number().int().readonly(), logo_props: z.any().readonly(), name: z.string().max(255), project_ids: z.array(z.string().uuid()).optional(), updated_at: z.string().datetime({ offset: true }).readonly(), updated_by: z.string().uuid().readonly(), workspace: z.string().uuid().readonly(), }); export type IssueTypeAPI = z.infer<typeof IssueTypeAPI>;