Queries
myTasks
Retrieves a paginated and filterable list of tasks assigned to the currently authenticated user.
Template for Query:
query GetMyTasks($hubId: ID!, $filter: TaskFilterInput, $pagination: PaginationInput) {
myTasks(hubId: $hubId, filter: $filter, pagination: $pagination) {
results {
id
}
}
}
Arguments
| hubId* ID! non-null | The CommonWorkspace hub ID (a.k.a. ACE scope URN) of the hub to query. |
| filter | Filter criteria for the task list. |
| pagination | Specifies how to split the response into multiple pages. |
* Required
Possible Returns
| Value Type | Description |
|---|---|
Tasks! non-null |
Represents pagination and a list of tasks. |
Examples
Example 1
Lists tasks assigned to the calling user across the hub. Same shape as tasks, scoped to the caller’s identity from the bearer token.
Query:
query GetMyTasks($hubId: ID!, $filter: TaskFilterInput, $pagination: PaginationInput) {
myTasks(hubId: $hubId, filter: $filter, pagination: $pagination) {
pagination {
cursor
pageSize
}
results {
id
name
description
taskStatusId
priorityCode
priorityLabel
dueDate
progress
createdOn
lastModifiedOn
board {
id
name
}
}
}
}
Show More
Query Variables:
{
"hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7",
"pagination": {
"limit": 20
}
}
Response:
{
"data": {
"myTasks": {
"pagination": {
"cursor": null,
"pageSize": 0
},
"results": []
}
}
}
Show More