linear.issues.add_labels ​
Ensure labels are present on a Linear issue
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-linear |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
issue_id | string | Yes | — | — |
label_ids | list | Yes | — | — |
dry_run | boolean | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
issue_id | string | No | — | — |
label_ids | list | No | — | — |
added_label_ids | list | No | — | — |
changed | boolean | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
failed_at | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "linear.issues.add_labels",
"initial_data": {
"issue_id": "value",
"label_ids": "value"
}
}