# linear_labels (Data Source)

Lists issue labels, either of one team or of the whole workspace.

## Example Usage

```terraform
data "linear_labels" "all" {}

data "linear_labels" "engineering" {
  team_id = data.linear_team.engineering.id
}
```

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

### Optional

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

### Read-Only

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

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

Read-Only:

- `color` (String) Colour of the label as a hex string.
- `description` (String) Description of the label.
- `id` (String) UUID of the label.
- `is_group` (Boolean) Whether the label is a group other labels nest under.
- `name` (String) Name of the label.
- `parent_id` (String) UUID of the parent label group.
- `team_id` (String) UUID of the team the label is scoped to, null for a workspace label.