# linear_workflow_states (Data Source)

Lists workflow states, either of one team or of the whole workspace.

## Example Usage

```terraform
data "linear_workflow_states" "engineering" {
  team_id = data.linear_team.engineering.id
}

output "started_states" {
  value = [
    for s in data.linear_workflow_states.engineering.workflow_states :
    s.name if s.type == "started"
  ]
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `team_id` (String) UUID of the team to list states for. Leave unset to list every state in the workspace.

### Read-Only

- `workflow_states` (Attributes List) The workflow states, as Linear returns them. (see [below for nested schema](#nestedatt--workflow_states))

<a id="nestedatt--workflow_states"></a>
### Nested Schema for `workflow_states`

Read-Only:

- `color` (String) Colour of the state as a hex string.
- `description` (String) Description of the state.
- `id` (String) UUID of the workflow state.
- `name` (String) Name of the state.
- `position` (Number) Sort position of the state within its category.
- `team_id` (String) UUID of the team the state belongs to.
- `type` (String) Category the state belongs to — `triage`, `backlog`, `unstarted`, `started`, `completed`, `canceled` or `duplicate`.