Skip to main content
Glama
cdmx-in
by cdmx-in

update_task_status

Change task status in Goodday project management by providing task ID, user ID, new status ID, and optional comment to track progress updates.

Instructions

Update the status of a task.

Args: task_id: The ID of the task to update user_id: User on behalf of whom API will execute update status_id: New status ID message: Optional comment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_idYes
user_idYes
status_idYes
messageNo

Implementation Reference

  • The main handler function for the 'update_task_status' tool. It constructs a payload with user ID, status ID, and optional message, then makes a PUT request to the Goodday API endpoint /task/{task_id}/status using the make_goodday_request helper. Handles errors and returns success message.
    @mcp.tool()
    async def update_task_status(task_id: str, user_id: str, status_id: str, message: Optional[str] = None) -> str:
        """Update the status of a task.
    
        Args:
            task_id: The ID of the task to update
            user_id: User on behalf of whom API will execute update
            status_id: New status ID
            message: Optional comment
        """
        data = {
            "userId": user_id,
            "statusId": status_id
        }
        
        if message:
            data["message"] = message
        
        result = await make_goodday_request(f"task/{task_id}/status", "PUT", data)
        
        if not result:
            return "Unable to update task status: No response received"
        
        if isinstance(result, dict) and "error" in result:
            return f"Unable to update task status: {result.get('error', 'Unknown error')}"
        
        return "Task status updated successfully"

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/cdmx-in/goodday-mcp'

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