List tasks
Tasks in a project with status, assignees and due date.
GET https://cotlet.dev/api/v1/hubstaff/projects/{project_id}/tasks
read
Lists the tasks of one project with summary, status and the members assigned to each. Filter by status to see what is still open.
Parameters
| Name | Type | Description |
|---|---|---|
| project_id integer required | integer | Project ID from list_projects. |
| status string | string | active or completed. Default: both. |
| limit integer | integer | 1 to 100. Default: 50. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/hubstaff/projects/1/tasks \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("hubstaff", "list_tasks", {"project_id":1}) const result = await cotlet.call('hubstaff', 'list_tasks', {"project_id":1}); cotlet call hubstaff list_tasks --data '{"project_id":1}' Example response
{
"tasks": [
{
"task_id": 551020,
"summary": "Homepage design",
"status": "active",
"assignee_ids": [
3011
],
"due_at": null
},
{
"task_id": 551021,
"summary": "Checkout flow",
"status": "completed",
"assignee_ids": [
3012
],
"due_at": null
}
],
"next_cursor": null
}