Merge tickets

Merge a duplicate ticket into another ticket.

MCP tool zammad_write → merge_tickets

write Confirm

Moves all articles of the source ticket into the target ticket. The source stays, with its articles replaced by a merged label, the state merged and a link to the target. Returns both ticket ids and the new state of the source. Merging two tickets from different channels means you answer through the target's channel. A merge is not undone in one call, so check the pair. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: merge_tickets
NameTypeDescription
source_ticket_id integer required integer The duplicate. It ends up in state merged.
target_ticket_id integer required integer The original ticket that keeps all the articles.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "zammad_write",
    "arguments": {
      "operation": "merge_tickets",
      "arguments": {
        "source_ticket_id": 4821,
        "target_ticket_id": 4790
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "target_ticket_id": 4790,
    "target_number": "31004790",
    "source_ticket_id": 4821,
    "source_state": "merged"
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.