Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

update_worklog

Modify an existing worklog in Plane MCP Server by updating fields like description, duration, and timestamps using project, issue, and worklog identifiers. Simplifies work item management within project workflows.

Instructions

Update an existing worklog

Input Schema

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

Implementation Reference

  • The handler function for the 'update_worklog' tool, which makes a PATCH request to the Plane API to update the specified worklog.
    async ({ project_id, issue_id, worklog_id, worklog_data }) => { const response = await makePlaneRequest( "PATCH", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issues/${issue_id}/worklogs/${worklog_id}/`, worklog_data ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
  • Direct registration of the 'update_worklog' tool using server.tool(), including name, description, input schema, and handler.
    server.tool( "update_worklog", "Update an existing worklog", { 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 containing the worklog"), worklog_id: z.string().describe("The uuid identifier of the worklog to update"), worklog_data: IssueWorkLog.partial().describe("The fields to update on the worklog"), }, async ({ project_id, issue_id, worklog_id, worklog_data }) => { const response = await makePlaneRequest( "PATCH", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/issues/${issue_id}/worklogs/${worklog_id}/`, worklog_data ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; } );
  • Zod schema definition for IssueWorkLog, which is used in the tool's input schema for worklog_data via IssueWorkLog.partial().
    export const IssueWorkLog = z.object({ issue_id: z.string().uuid(), description: z.string().optional(), logged_by_id: z.string().uuid(), duration: z.number().int().min(0).describe("The duration of the worklog in minutes"), created_at: z.string().datetime(), updated_at: z.string().datetime(), project_id: z.string().uuid(), workspace_id: z.string().uuid(), }); export type IssueWorkLog = z.infer<typeof IssueWorkLog>;

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