Queries
task
Retrieves a single task by its ID. urn:adsk.ace:beta.scope:0880d31a-acab-4a3f-8059-12dce60a85da) of the hub that contains the task.
Template for Query:
query GetTask($hubId: ID!, $taskId: ID!) {
task(hubId: $hubId, taskId: $taskId) {
id
}
}
Arguments
| hubId* ID! non-null | The CommonWorkspace hub ID (a.k.a. ACE scope URN, e.g. |
| taskId* ID! non-null | The unique identifier of the task. |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| Task | Represents a task — an individual unit of work within a task board. A task tracks work items with status, priority, assignment, and progress. |
Examples
Example 1
Retrieves a single task by ID. assignedTo and createdBy are User references resolved by the user-profile subgraph; select only id here and fetch profile fields through that subgraph.
Query:
query GetTask($hubId: ID!, $taskId: ID!) {
task(hubId: $hubId, taskId: $taskId) {
id
name
description
taskStatusId
priorityCode
priorityLabel
dueDate
progress
createdOn
lastModifiedOn
taskStatus {
id
code
label
sortOrder
}
assignedTo {
id
}
createdBy {
id
}
board {
id
name
}
}
}
Show More
Query Variables:
{
"hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7",
"taskId": "NgwRgSdC1VjONh8Ts9eoRK_aga"
}
Response:
{
"data": {
"task": {
"id": "NgwRgSdC1VjONh8Ts9eoRK_aga",
"name": "Review bracket tolerances",
"description": "Confirm the stack-up against the revised drawing before release.",
"taskStatusId": "EwgH0qjTZmhD3JEW0iU4VK_aga:BACKLOG",
"priorityCode": "15_MEDIUM",
"priorityLabel": "Medium",
"dueDate": null,
"progress": 0,
"createdOn": "2026-11-30T22:33:14.370Z",
"lastModifiedOn": "2026-11-30T22:33:14.370Z",
"taskStatus": {
"id": "EwgH0qjTZmhD3JEW0iU4VK_aga:BACKLOG",
"code": "BACKLOG",
"label": "Backlog",
"sortOrder": 0
},
"assignedTo": null,
"createdBy": {
"id": "KFR256Q8QHU6AYXC"
},
"board": {
"id": "EwgH0qjTZmhD3JEW0iU4VK_aga",
"name": "Bracket redesign"
}
}
}
}
Show More