ticket.external.sync.dispatch ​
Dispatch outbound ticket sync to the configured provider workflow.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-tickets |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
ticket_uuid | string | Yes | — | — |
provider | string | Yes | — | — |
connection_uuid | string | No | — | — |
mode | string | No | — | — |
sync_fields | list | No | — | — |
comment | string | No | — | — |
idempotency_key | string | No | — | — |
dry_run | boolean | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
ticket_uuid | string | No | — | — |
provider | string | No | — | — |
provider_workflow_type | string | No | — | — |
provider_result | json | No | — | — |
warnings | list | No | — | — |
prepare | json | No | — | — |
linear | json | No | — | — |
jira | json | No | — | — |
asana | json | No | — | — |
github | json | No | — | — |
finalize | json | No | — | — |
workflow_run_uuid | string | No | — | — |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
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 |
failed_at | string | No | — | ISO-8601 timestamp when action_fail recorded the failure |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | prepare | ticket.external.sync.prepare | — |
| 2 | sync | linear.tickets.sync_ticket_to_issue, jira.tickets.sync_ticket_to_issue, asana.tickets.sync_ticket_to_task, github.tickets.sync_ticket_to_issue | — |
| 3 | finalize | ticket.external.sync.finalize | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
ticket.external.sync.prepare | prepare |
linear.tickets.sync_ticket_to_issue | linear |
jira.tickets.sync_ticket_to_issue | jira |
asana.tickets.sync_ticket_to_task | asana |
github.tickets.sync_ticket_to_issue | github |
ticket.external.sync.finalize | finalize |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "ticket.external.sync.dispatch",
"initial_data": {
"organization_uuid": "value",
"ticket_uuid": "value",
"provider": "value"
}
}