Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

update_issue

Modify issue details in Plane MCP Server by providing project_id, issue_id, and updated issue_data, including attributes like assignees, labels, and target dates.

Instructions

Update an issue. This requests project_id and issue_id as uuid parameters. If you have a readable identifier, you can use the get_issue_using_readable_identifier tool to get the issue_id and project_id

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_dataYesThe fields to update on the issue
issue_idYesThe uuid identifier of the issue to update
project_idYesThe uuid identifier of the project containing the issue

Implementation Reference

  • The async handler function that executes the tool by sending a PATCH request to update the issue via the Plane API.
    async ({ project_id, issue_id, issue_data }) => {
      const response = await makePlaneRequest(
        "PATCH",
        `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issues/${issue_id}/`,
        issue_data
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(response, null, 2),
          },
        ],
      };
    }
  • Input schema/validation for the update_issue tool parameters.
    {
      project_id: z.string().describe("The uuid identifier of the project containing the issue"),
      issue_id: z.string().describe("The uuid identifier of the issue to update"),
      issue_data: IssueSchema.partial().describe("The fields to update on the issue"),
    },
  • Registration of the 'update_issue' tool using McpServer.tool() method inside registerIssueTools function.
    server.tool(
      "update_issue",
      "Update an issue. This requests project_id and issue_id as uuid parameters. If you have a readable identifier, you can use the get_issue_using_readable_identifier tool to get the issue_id and project_id",
      {
        project_id: z.string().describe("The uuid identifier of the project containing the issue"),
        issue_id: z.string().describe("The uuid identifier of the issue to update"),
        issue_data: IssueSchema.partial().describe("The fields to update on the issue"),
      },
      async ({ project_id, issue_id, issue_data }) => {
        const response = await makePlaneRequest(
          "PATCH",
          `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issues/${issue_id}/`,
          issue_data
        );
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(response, null, 2),
            },
          ],
        };
      }
    );
  • Zod schema for Issue object, referenced as IssueSchema and used in partial form for update_issue input.
    export const Issue = z.object({
      archived_at: z.string().date().optional(),
      assignees: z.array(z.string().uuid()).optional(),
      completed_at: z.string().datetime({ offset: true }).optional(),
      created_at: z.string().datetime({ offset: true }).readonly(),
      created_by: z.string().uuid().optional(),
      deleted_at: z.string().datetime({ offset: true }).optional(),
      description_binary: z.string().readonly(),
      description_html: z.string().optional(),
      estimate_point: z.string().uuid().optional(),
      external_id: z.string().max(255).optional(),
      external_source: z.string().max(255).optional(),
      id: z.string().uuid().readonly(),
      is_draft: z.boolean().optional(),
      labels: z.array(z.string().uuid()).optional(),
      name: z.string().max(255),
      parent: z.string().uuid().optional(),
      point: z.number().int().gte(0).lte(12).optional(),
      priority: z.any().optional(),
      project: z.string().uuid().readonly(),
      sequence_id: z.number().int().gte(-2147483648).lte(2147483647).optional(),
      sort_order: z.number().optional(),
      start_date: z.string().date().optional(),
      state: z.string().uuid().optional(),
      target_date: z.string().date().optional(),
      type: z.string().uuid().optional(),
      type_id: 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 Issue = z.infer<typeof Issue>;
  • High-level registration call to registerIssueTools(server), which includes the update_issue tool.
    registerIssueTools(server);

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/makeplane/plane-mcp-server'

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