linear.issues.create_issue ​
Create a Linear issue
Create a Linear issue using the Linear GraphQL API.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-linear |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
team_id | string | Yes | — | Linear team ID |
title | string | Yes | — | Issue title |
description | string | No | — | Issue description in markdown |
priority | integer | No | — | 0=No Priority |
assignee_id | string | No | — | Linear user ID to assign |
label_ids | json | No | — | List of Linear label IDs |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
identifier | string | No | — | — |
issue_id | string | No | — | — |
issue_number | string | No | — | — |
issue_url | string | No | — | — |
assignee_id | string | No | — | — |
description | string | No | — | — |
label_ids | json | No | — | — |
priority | integer | No | — | — |
team_id | string | No | — | — |
title | string | 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.create_issue",
"initial_data": {
"team_id": "value",
"title": "value"
}
}