Request

Response

    Mutations

    createTaskStatus

    mutation

    Creates a custom task status on a board. System default rows are seeded when the board is created; use this for additional columns.

    Template for Mutation:

    mutation CreateTaskStatus($hubId: ID!, $input: CreateTaskStatusInput!) {
      createTaskStatus(hubId: $hubId, input: $input) {
        taskStatus {
          id
        }
      }
    }
    

    Arguments

    hubId*
    ID non-null
    The CommonWorkspace hub ID (a.k.a. ACE scope URN) of the hub that contains the board.
    input*Board ID, code, label, and optional sort order.
    * Required

    Possible Returns

    Value TypeDescription
    CreateTaskStatusPayload Return payload for the createTaskStatus mutation.


    Examples

    Example 1

    Adds a custom status column to a board. code is the stable machine identifier and label the display string; sortOrder positions the column among the existing statuses. Use the returned status ID in the other task status examples.

    Query:

     mutation CreateTaskStatus($hubId: ID!, $input: CreateTaskStatusInput!) {
     createTaskStatus(hubId: $hubId, input: $input) {
       taskStatus {
         id
         code
         label
         sortOrder
         isSystem
       }
     }
    }
    
    Show More

    Query Variables:

    {
      "hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7",
      "input": {
        "boardId": "EwgH0qjTZmhD3JEW0iU4VK_aga",
        "code": "IN_REVIEW",
        "label": "In review",
        "sortOrder": 4
      }
    }
    
    Show More

    Illustrative response

    {
      "data": {
        "createTaskStatus": {
          "taskStatus": {
            "id": "EwgH0qjTZmhD3JEW0iU4VK_aga:IN_REVIEW",
            "code": "IN_REVIEW",
            "label": "In review",
            "sortOrder": 4,
            "isSystem": false
          }
        }
      }
    }
    
    Show More