# linear_customer_status (Resource)

Manages a customer status in Linear — one stage of the workspace's customer lifecycle.

Requires Linear Customers to be enabled for the workspace; see `customers_enabled` on `linear_workspace_settings`. Statuses are workspace-wide, not per team.

## Example Usage

```terraform
# Needs Linear Customers enabled for the workspace — see `customers_enabled` on
# linear_workspace_settings.
resource "linear_customer_status" "prospect" {
  name         = "prospect"
  display_name = "Prospect"
  description  = "In conversation, not yet signed"
  color        = "#bec2c8"
  position     = 1
}

resource "linear_customer_status" "active" {
  name         = "active"
  display_name = "Active"
  color        = "#4cb782"
  position     = 2
}
```

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

### Required

- `color` (String) Colour of the status indicator as a hex string, e.g. `#26b5ce`.

### Optional

- `description` (String) Description of what the status represents.
- `display_name` (String) Name shown in the Linear UI. Set at least one of `name` and `display_name`.
- `name` (String) Internal name of the status. Set at least one of `name` and `display_name`.
- `position` (Number) Sort position within the customer lifecycle. Linear appends the status at the end when unset.

### Read-Only

- `id` (String) UUID of the customer status.

## Import

Import is supported using the following syntax:

The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:

```shell
# Import by UUID.
terraform import linear_customer_status.example a1b2c3d4-0000-0000-0000-000000000000
```