TICKET MANAGEMENT

Backfill the Linear engineering issue when tickets are merged

When tickets are merged in Zendesk, find or create the single Linear issue that tracks the underlying bug, link every merged ticket to it.

CategoryTicket Management
Enginesim
Difficultyintermediate
Triggerevent
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerZendesk tickets mergedZendeskZendesk
  • ActionLook up mapped Linear issuePostgreSQLPostgres
  • LogicExisting issue found?
  • ActionCreate or reuse Linear issue, link tickets, bump impact countLinearLinear
  • ActionUpsert ticket-to-issue mappingPostgreSQLPostgres
  • OutputWrite Linear link back to Zendesk ticketZendeskZendesk

What it does

Keeps engineering's view of a bug in sync with support reality. When duplicate tickets get merged, this flow ensures exactly one Linear issue represents the problem and that its affected-customer count reflects all the merged tickets, not just the first reporter.

When to use it

Use it when support and engineering drift apart — a bug has fifteen tickets but the Linear issue still shows one customer, so it never gets prioritized. This closes that gap automatically on every merge.

How it works

  1. 1A Zendesk ticket-merged event fires the trigger.
  2. 2Postgres is queried for an existing Linear issue id mapped to the surviving ticket or its tag.
  3. 3A logic step branches: if no mapping exists, create a new Linear issue from the ticket summary; otherwise reuse the found issue.
  4. 4Linear receives a comment linking every merged ticket id and increments a custom impact-count field.
  5. 5The ticket-to-issue mapping is upserted into Postgres for future merges.
  6. 6The Linear issue link is written back to the surviving Zendesk ticket as an internal note.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect ZendeskTickets, queues, knowledge base.
  2. 2
    Connect LinearIssues, projects, cycles, triage.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.