# WorkflowStatus

> Type in domain **Workflows**

- HTML: [WorkflowStatus.html](WorkflowStatus.html)
- Raw SDL: [WorkflowStatus.sdl](WorkflowStatus.sdl)
- Covered by: [llms.txt](../llms.txt)

## Fields

- `id`: `ID!` _(beta)_ — `WorkflowStatus` id.
- `name`: `String!` _(beta)_ — The name of the `WorkflowStatus`.
- `color`: `RgbaColor!` _(beta)_ — The color of the `WorkflowStatus`.
- `assignedUsers`: `[User]!` _(beta)_ — List of `User` assigned to this `WorkflowStatus`.
- `checklistPresets`: `[WorkflowChecklistPreset]!` _(beta)_ — A list of `WorkflowPreset` that is used to create one or more `WorkflowChecklistItem`, which are appended to a `WorkflowTask` on entering this `WorkflowState`.
- `tasks` (`limit`: `Int`, `page`: `Int`): `WorkflowStatusTaskItems!` _(beta)_ — A list of the `WorkflowTask` in the `WorkflowStatus`.
- `enterRules`: `[WorkflowStatusEnterRule]!` _(beta)_ — A list of `WorkflowStatusEnterRule` which needs to be satisfied before a `WorkflowTask` can enter this `WorkflowStatus`.

## Related mutations

- [`addWorkflowStatusAssignees`](../mutation/addWorkflowStatusAssignees.md)
- [`createWorkflowStatus`](../mutation/createWorkflowStatus.md)
- [`deleteWorkflowStatus`](../mutation/deleteWorkflowStatus.md)
- [`moveWorkflowTask`](../mutation/moveWorkflowTask.md)
- [`removeWorkflowStatusAssignees`](../mutation/removeWorkflowStatusAssignees.md)
- [`updateWorkflowStatus`](../mutation/updateWorkflowStatus.md)

## Reach via

Example queries that can return this type from the root `Query`.

### `assets › workflowTask › status`

```graphql
query AssetsWorkflowTaskStatus {
  assets(ids: "…") {
    workflowTask {
      status {
        __typename
        assignedUsers {
          __typename
          name
          id
        }
        checklistPresets {
          id
          content
          assignedUser {
            __typename
            name
            id
          }
        }
        color {
          alpha
          blue
          green
          red
        }
        enterRules
        id
        name
        tasks {
          total
          page
          limit
          hasNextPage
          items {
            title
            id
            description
            asset { id }
            assignedUsers { id }
          }
        }
      }
    }
  }
}
```

Raw: [`AssetsWorkflowTaskStatus.sdl`](../examples/AssetsWorkflowTaskStatus.sdl)

### `asset › workflowTask › status`

```graphql
query AssetWorkflowTaskStatus {
  asset(id: "…") {
    workflowTask {
      status {
        __typename
        assignedUsers {
          __typename
          name
          id
        }
        checklistPresets {
          id
          content
          assignedUser {
            __typename
            name
            id
          }
        }
        color {
          alpha
          blue
          green
          red
        }
        enterRules
        id
        name
        tasks {
          total
          page
          limit
          hasNextPage
          items {
            title
            id
            description
            asset { id }
            assignedUsers { id }
          }
        }
      }
    }
  }
}
```

Raw: [`AssetWorkflowTaskStatus.sdl`](../examples/AssetWorkflowTaskStatus.sdl)
