ticket.ingest.external-work-item ​
Map a generic external provider work item into a canonical ticket.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-tickets |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
provider | string | Yes | — | — |
provider_workspace_ref | string | No | — | — |
provider_item_ref | string | Yes | — | — |
provider_item_key | string | No | — | — |
url | string | No | — | — |
title | string | Yes | — | — |
body | string | No | — | — |
status | string | No | — | — |
priority | string | No | — | — |
assignee_ref | string | No | — | — |
labels | list | No | — | — |
raw_compact | json | No | — | — |
owner_type | string | No | — | — |
owner_uuid | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
ticket_uuid | string | No | — | — |
created | boolean | No | — | — |
occurrence_count | integer | No | — | — |
binding_uuid | string | No | — | — |
provider_item_ref | string | No | — | — |
warnings | list | No | — | — |
organization_uuid | string | No | — | Input field preserved in workflow state. |
provider | string | No | — | Input field preserved in workflow state. |
provider_workspace_ref | string | No | — | Input field preserved in workflow state. |
provider_item_key | string | No | — | Input field preserved in workflow state. |
url | string | No | — | Input field preserved in workflow state. |
title | string | No | — | Input field preserved in workflow state. |
body | string | No | — | Input field preserved in workflow state. |
status | string | No | — | Input field preserved in workflow state. |
priority | string | No | — | Input field preserved in workflow state. |
assignee_ref | string | No | — | Input field preserved in workflow state. |
labels | list | No | — | Input field preserved in workflow state. |
raw_compact | json | No | — | Input field preserved in workflow state. |
owner_type | string | No | — | Input field preserved in workflow state. |
owner_uuid | string | No | — | Input field preserved in workflow state. |
failed_at | string | No | — | ISO-8601 timestamp when action_fail recorded the failure |
failure_reason | string | No | — | Human-readable failure reason from action_fail |
failure_type | string | No | — | Engine-stamped failure category |
failed_action | string | No | — | Engine-stamped action that raised |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | string | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | execute | Accepted |
executing | No | No | — | complete | Applying the mutation |
completed | No | Yes | Yes | — | Done |
failed | No | Yes | No | — | Failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | execute | executing | Run the mutation |
executing | complete | completed | Finalize |
* (any state) | fail | failed | Catch-all failure |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "ticket.ingest.external-work-item",
"initial_data": {
"organization_uuid": "value",
"provider": "value",
"provider_item_ref": "value",
"title": "value"
}
}