Request

Response

    Queries

    taskBoardGroups

    query

    Returns all groups assigned to a task board, with their roles.

    Template for Query:

    query GetTaskBoardGroups($hubId: ID!, $boardId: ID!) {
      taskBoardGroups(hubId: $hubId, boardId: $boardId) {
        results {
          group {
            id
          }
          role
        }
      }
    }
    
    Show More

    Arguments

    hubId*
    ID! non-null
    The CommonWorkspace hub ID (a.k.a. ACE scope URN) that contains the board.
    boardId*
    ID! non-null
    The unique identifier of the task board.
    * Required

    Possible Returns

    Value TypeDescription
    TaskBoardGroups! non-null Represents pagination and a list of task board groups.


    Examples

    Example 1

    Lists the groups granted access to a board, and their role. group is a Group reference resolved by the project-management subgraph.

    Query:

    query GetTaskBoardGroups($hubId: ID!, $boardId: ID!) {
     taskBoardGroups(hubId: $hubId, boardId: $boardId) {
       pagination {
         cursor
         pageSize
       }
       results {
         role
         group {
           id
         }
       }
     }
     }
    
    Show More

    Query Variables:

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

    Response:

    {
       "data": {
           "taskBoardGroups": {
               "pagination": {
                   "cursor": null,
                   "pageSize": null
               },
               "results": [
                   {
                       "role": "ADMIN",
                       "group": {
                           "id": "327741550"
                       }
                   }
               ]
           }
       }
    }
    
    Show More