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
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | ||
| user_id | Yes | ||
| status_id | Yes | ||
| message | No |
Implementation Reference
- goodday_mcp/main.py:563-590 (handler)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"