Request

Response

    Queries

    tasks

    query

    Retrieves a paginated and filterable list of tasks.

    Template for Query:

    query GetTasks($hubId: ID!, $filter: TaskFilterInput, $pagination: PaginationInput) {
      tasks(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.
    filterFilter criteria for the task list.
    paginationSpecifies how to split the response into multiple pages.
    * Required

    Possible Returns

    Value TypeDescription
    Tasks! non-null Represents pagination and a list of tasks.


    Examples

    Example 1

    Lists tasks across a hub. Both filter and pagination are optional. Page forward by passing the returned pagination.cursor back as pagination.cursor.

    Query:

    query GetTasks($hubId: ID!, $filter: TaskFilterInput, $pagination: PaginationInput) {
     tasks(hubId: $hubId, filter: $filter, pagination: $pagination) {
       pagination {
         cursor
         pageSize
       }
       results {
       id
         name
         description
         taskStatusId
         priorityCode
         priorityLabel
         dueDate
         progress
         createdOn
         lastModifiedOn
       }
     }
     }
    
    Show More

    Query Variables:

    {
     "hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7",
     "filter": {
       "boardId": "EwgH0qjTZmhD3JEW0iU4VK_aga"
     },
     "pagination": {
       "limit": 20
     }
    }
    
    Show More

    Response:

    {
       "data": {
           "tasks": {
               "pagination": {
                   "cursor": null,
                   "pageSize": 1
               },
               "results": [
                   {
                       "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"
                   }
               ]
           }
       }
    }
    
    Show More