Pular para o conteúdo
duxt
Esta página ainda não está disponível no seu idioma
Você está lendo em English (UK).

linear_label

Looks up an issue label by UUID or name. Covers both workspace and team labels — which one you got is visible from whether team_id came back set.

linear_label (Data Source)

Looks up an issue label by UUID or name. Covers both workspace and team labels — which one you got is visible from whether team_id came back set.

Example Usage

data "linear_label" "ai" {
  name = "ai"
}

# Narrow by team when a workspace label and a team label share a name:
data "linear_label" "flaky" {
  name    = "flaky"
  team_id = data.linear_team.engineering.id
}

Schema

Optional

  • id (String) UUID of the label. Set either this or name.
  • name (String) Name of the label. Set either this or id.
  • team_id (String) UUID of the team, narrowing a lookup by name to that team's labels. Needed when a workspace label and a team label share a name.

Read-Only

  • color (String) Colour of the label as a hex string.
  • description (String) Description of the label.
  • is_group (Boolean) Whether the label is a group other labels nest under.
  • parent_id (String) UUID of the parent label group.
Esta página foi útil?