Keysproperty operations Corbelstone Residential

#258 · Duplicate ticket

done Thu 15:40 · ticket 5358

Ledger row
policy v2
The call
POST /tickets/5358/merge into=5357
Action, tier
merge_duplicate_ticket, tier 0
Decided by
rules: Same cleaning in the same building, 360 minutes apart; merge so only one vendor goes.
Controller
Allowed: merge_duplicate_ticket is tier 0 (just do it); within budget (0 of 6 actions at building 26 this hour).
authority
conditions
cooldown
budget
Definition
duplicate_ticket v2
At stake
a second vendor call-out for one fault
Outcome
Ticket 5358 merged into ticket 5357.
Undo
Reopen the duplicate as its own ticket.

Undo

Nothing to undo from here: done.

What happened next

Evidence

{
  "amount_at_risk": null,
  "building_id": 26,
  "category": "cleaning",
  "currency": null,
  "minutes_apart": 360,
  "original_source": "tenant_app",
  "original_ticket_id": 5357,
  "original_vendor_id": 255,
  "scope": "common",
  "source": "phone",
  "stake_note": "a second vendor call-out for one fault",
  "started_at": "2026-10-29T15:38:27.268859",
  "summary": "Common area needs cleaning",
  "ticket_id": 5358,
  "unit_id": null,
  "vendor_id_on_duplicate": 271
}

Before and after

{
  "after": {
    "ticket_events": [
      {
        "id": 27035,
        "ticket_id": 5358,
        "type": "merged_as_duplicate"
      }
    ],
    "tickets": [
      {
        "closed_at": "2026-10-29T15:40:00",
        "duplicate_of": 5357,
        "id": 5358,
        "status": "merged"
      }
    ]
  },
  "before": {
    "tickets": [
      {
        "closed_at": "2026-10-31T11:37:14.255084",
        "duplicate_of": 5357,
        "id": 5358,
        "status": "merged"
      }
    ]
  },
  "endpoint": "POST /tickets/5358/merge into=5357",
  "note": "Ticket 5358 merged into ticket 5357.",
  "ok": true,
  "rollback_fn_name": "undo_merge_duplicate_ticket"
}

Arguments

{
  "original_ticket_id": 5357,
  "ticket_id": 5358
}