Update Ticket

zammad.update_ticket
ActionBusiness appsconnection required

Calls the Zammad API with the connection's credentials.

Change a ticket's attributes, or add an article to it.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Zammad
Secret shape
the API token, or {"api_token": "…"}
Config it needs
base_url
Resolved by
config.connection_id, else node.connection_id

Configuration

12 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
ticket_id
The ticket to act on, as its numeric Zammad id (not the ticket number).
stringYes——12
state
The state to move the ticket to, by name or by id.
stringNo——closed
title
A replacement title for the ticket.
stringNo——Printer in reception is offline
group
The group to move the ticket to, by name or by id.
stringNo——2nd Level
priority
The ticket's priority, by name or by id.
stringNo——3 high
owner
The agent to assign the ticket to, by login, email address or id.
stringNo——agent@acme.com
article_body
Body of the article to add to the ticket. Leave blank to change nothing but the ticket's own attributes.
stringNo——Thanks for getting in touch — we are looking into this now.
article_subject
Subject line for that article.
stringNo——Re: printer offline
article_type
Zammad's article type, such as note, email or phone; every install defines its own set, so this is free text.
stringNo——note
article_sender
Whether the article is written as the customer or as an agent.
stringNo—one of "Customer", "Agent"—
article_internal
Keep the article internal, so the customer never sees it.
booleanNofalse——
fields
Any further ticket attributes, including this install's custom object attributes, as a JSON object such as {"note": "Imported from the old desk"}.
objectNo———
  • At least one of state, title, group, priority, owner, article_body, fields must be set.

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "article_body": "Thanks for getting in touch — we are looking into this now.",
  "article_internal": false,
  "article_subject": "Re: printer offline",
  "article_type": "note",
  "group": "2nd Level",
  "owner": "agent@acme.com",
  "priority": "3 high",
  "state": "closed",
  "ticket_id": "12",
  "title": "Printer in reception is offline"
}

Output

One shape.

result

FieldTypeExample
id
The ticket's numeric id.
number—
number
The ticket number people quote, such as '67001'.
string—
title
The ticket's title.
string—
group_id
Id of the group the ticket is routed to.
number—
state_id
Id of the ticket's state.
number—
priority_id
Id of the ticket's priority.
number—
owner_id
Id of the agent the ticket is assigned to.
number—
customer_id
Id of the customer the ticket belongs to.
number—
organization_id
Id of the customer's organization.
number—
created_at
When the ticket was opened, as an ISO 8601 stamp.
string—
updated_at
When the ticket last changed, as an ISO 8601 stamp.
string—
article_ids
Ids of the articles on the ticket.
array—
{
  "article_ids": [],
  "created_at": "",
  "customer_id": 0,
  "group_id": 0,
  "id": 0,
  "number": "",
  "organization_id": 0,
  "owner_id": 0,
  "priority_id": 0,
  "state_id": 0,
  "title": "",
  "updated_at": ""
}

Notes

  • An update with nothing to change is refused before the call; give at least one attribute or an 'article_body'.
  • Adding an article as the customer needs 'article_sender' set to Customer, which is what Zammad's own documentation calls for.

See Update Ticket run in a workflow.

In a technical demo we add the Zammad connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.