get_assignees
Retrieve assigned team members for a ClickUp task using its ID to manage project responsibilities and workflow coordination.
Instructions
Get assignees of a task
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task ID |
Implementation Reference
- src/clickup_mcp/tools.py:897-917 (handler)The main handler function for the 'get_assignees' tool. It resolves the task ID using _resolve_task_id, fetches the task, extracts the assignees, and returns structured data including task ID, list of assignees with details, and count.async def get_assignees(self, task_id: str) -> Dict[str, Any]: """Get task assignees.""" try: task = await self._resolve_task_id(task_id) except ClickUpAPIError as e: return {"error": f"Failed to get assignees for task '{task_id}': {e!s}"} return { "task_id": task.id, "assignees": [ { "id": user.id, "username": user.username, "email": user.email, "initials": user.initials, } for user in task.assignees ], "count": len(task.assignees), }
- src/clickup_mcp/tools.py:262-272 (schema)The input schema definition for the 'get_assignees' tool, specifying that it requires a 'task_id' string parameter.Tool( name="get_assignees", description="Get assignees of a task", inputSchema={ "type": "object", "properties": { "task_id": {"type": "string", "description": "Task ID"}, }, "required": ["task_id"], }, ),
- src/clickup_mcp/tools.py:35-35 (registration)Registration of the 'get_assignees' handler function in the tools dictionary within ClickUpTools class init."get_assignees": self.get_assignees,