What Zammad triggers do and when teams need them
Zammad triggers run actions when a ticket is created or updated and the ticket matches conditions you define. Each trigger combines a set of conditions with a set of actions, such as changing the state, setting the group or owner, adding tags, or sending a notification. A team needs triggers when the same handling step repeats across many tickets, when customers or agents must be told about a change automatically, or when a ticket's state should move without someone remembering to move it. The risk is that triggers fire on every matching update, including updates made by other triggers, so a trigger set that looks correct on paper can change tickets in ways nobody planned. Before you build anything, write down for each trigger what event starts it, which tickets it should touch, and what it should never do.
Triggers are not the right tool for every kind of automation in Zammad. A macro is an agent-initiated, one-click action, so it fits work that a person should decide to apply. Core workflows control which fields are shown, hidden or required in forms, and they do not change ticket content after save. Scheduler jobs run on a timetable and handle work that depends on elapsed time without any ticket being edited, such as closing stale pending tickets. When a rule must run on every ticket update, belongs to a specific agent decision, or depends on the passage of time, choose the tool that matches that trigger point before you write a trigger. Mixing these tools for the same outcome is a common source of conflicting changes.
Before you deploy triggers to production, confirm three things in your own instance: which triggers already exist and their execution order, which roles are allowed to create or change them, and how your test environment mirrors production groups, states and customer data. Review the official Zammad documentation for the version you run, because trigger behavior and related settings can change between releases. Keep a short written register of each trigger's purpose, owner and last review date. That register is what lets a second administrator understand a rule months later, and it is the first thing an auditor or a support lead will ask for when a ticket behaves unexpectedly.
Selective versus always activators and the other trigger choices
This table compares the main choices when designing a Zammad trigger: selective activators, always-style activators, conditions, actions and the object each trigger applies to. Read each row as a decision, then check the behavior in your installed version before you rely on it in production.
| Choice | When it fits | Risks to design for |
|---|---|---|
| Selective activator (fires on defined changes) | Notifications or actions that should run only when a specific field changes, such as state moving to closed or group changing | Missed runs if the change happens through a path you did not test, such as the API or a macro |
| Always-style activator (fires on every create or update that matches conditions) | Rules that must hold on every save, such as tagging tickets from a particular mailbox | Repeated notifications on each update and overwritten fields if the trigger sets a value another trigger or agent changed |
| Trigger that sets a field on update | Keeping a derived field such as priority or group consistent with other data | Loops when a trigger changes a field that re-fires the same or another trigger; confirm loop protection in your version |
| Conditions on the ticket versus the article | Ticket-level rules such as state or priority; article-level rules for sender or channel of a single message | Article conditions may not behave as agents expect on the first message; test with a new ticket and a reply |
| Object the trigger applies to (ticket or user or organization) | Ticket triggers for workflow; user or organization triggers for customer data changes | A trigger on the wrong object can silently never match; confirm the object type in the admin interface |
| Email actions that send from a group address | Customer-facing notifications that should come from a team mailbox | The group needs a valid email address configured, or the email action will not send as expected; confirm group setup |
| Time-based activator on escalations | Escalation reminders tied to a ticket's pending or overdue time | Time-based rules depend on the scheduler and time zone settings; confirm execution timing before relying on it |
| Execution order across triggers | Several triggers on the same object that must run in a known sequence | Triggers run in alphabetical order by name, so a rename can change behavior; name them deliberately |
How condition design and execution order shape trigger results
A Zammad trigger does not simply fire when a ticket changes. Its outcome depends on the conditions you write, the values that changed in the same save, and the order in which the triggers that match that save run. Before you add an action, write out the conditions in plain language and check each one against what the ticket looks like at the moment the trigger evaluates it. A condition that checks for a state change, a group change or a specific article type behaves differently from one that only checks the current value, and a trigger that reads the ticket after another trigger has already changed it may match when you did not expect it to.
Execution order is the part teams most often overlook. Triggers run in alphabetical order by trigger name, so the name is effectively a design decision. If one trigger sets a state and a second trigger reacts to that state, the name of each determines which runs first and whether the second one sees the result of the first. A simple naming convention, such as a numeric prefix that groups triggers by purpose, keeps that sequence visible to administrators who inherit the configuration later. Treat a rename as a behavior change, because it can reorder triggers without touching any logic.
Confirm this behavior in your own Zammad version before you rely on it. Build a small test set in a staging instance: two triggers that touch the same field, one with a name sorted before the other and one sorted after, then save a ticket that matches both and record the result. Check the Zammad documentation for your release, for example the trigger pages in the Zammad admin documentation, and keep the test results with your change records so the naming rules survive staff turnover.
How a ticket change moves through triggers and actions
The flow starts when an agent or customer creates or updates a ticket. Zammad first checks each trigger's activator: a selective trigger evaluates its conditions against the changed attributes, while an always trigger runs on every save. Matching triggers then execute in alphabetical order by name, so the actions one trigger sets, such as state or group changes, can affect whether a later trigger matches. Time-based escalation triggers take a separate path that runs when a ticket reaches its due or escalation time. Check the order and the saved result before you rely on a trigger chain.
Trigger activation, ordering and actions for a single ticket save.
Time-based Zammad trigger activators for escalations
An event-based trigger runs once when something changes, such as a ticket being created or updated. A time-based trigger, which Zammad calls a time-based activator, runs when a ticket meets a condition that depends on elapsed time, such as a ticket staying in a state for a number of hours. Zammad evaluates these activators on a recurring basis rather than in response to an agent or customer action, so a ticket can match the condition long after its last update. This is why the same condition can fire on the same ticket more than once if nothing changes the ticket's state or the condition's inputs.
- Evaluation, not events: A time-based activator checks tickets on a schedule, so its timing depends on how often the check runs in your version.
- Repeat firing: If the action does not change a field the condition tests, the ticket keeps matching on every check.
- Timing precision: Expect the action to run after the threshold is crossed, not at the exact minute.
- Overlap with other automation: A time-based activator and a scheduler job can act on the same ticket field.
- Test with real ticket ages: Create test tickets with backdated timestamps in a staging instance to observe behavior.
Before building any escalation, confirm in your Zammad version how often time-based activators are evaluated and how they are logged.
A first response escalation usually targets new tickets that no agent has answered within a set period. The condition should test that the ticket is still open, that the first response has not been recorded, and that the age since creation has passed the threshold. Using the first response field rather than the state alone keeps the rule from firing on tickets already handled through another path.
- Condition: Ticket state is open or new, the first response timestamp is empty, and the creation time is older than the threshold.
- Risk of early firing: Auto-replies or system-generated messages may count as a response depending on how your configuration records it, so test that path.
- Risk of repeat firing: Without an action that changes an escalation marker, the same ticket will keep notifying the group on each check.
- Action design: Set an escalation tag or flag, then add that flag to the condition so the rule stops matching.
- Interaction with SLAs: If you use Zammad SLA settings for first response, confirm whether the SLA and the trigger both send notifications for the same breach.
Confirm in your version how first response is recorded and whether SLA breach notifications already cover this case.
Pending reminders are time-based actions that nudge an agent or group when a ticket has waited in a pending state for too long. The usual mistake is treating the pending state as a timer, when the state alone does not record how long the ticket has been pending. The condition should use the pending time field, so the threshold measures the period since the state was last set, and the action should avoid resetting that field.
- Condition: Ticket state is pending reminder, and the pending time is older than the threshold.
- Risk of firing too early: A ticket that was pending briefly, then reopened and set pending again, can match an older timestamp if your condition does not account for it.
- Risk of repeat firing: A reminder that updates the ticket can trigger other triggers on the same change, causing loops or duplicate messages.
- Customer-facing notices: Ensure the reminder goes to agents only, and do not send customer messages from a time-based activator unless you have tested the behavior.
- Scheduler overlap: If a scheduler job also closes pending tickets, check that the reminder runs before the closure window.
Confirm how the pending time field is set in your version and whether reminder emails are sent by triggers or scheduler jobs in your setup.
Stale ticket escalation targets open tickets that have not been updated for a long time, which often signals that ownership has been lost. The condition should measure time since the last update, exclude closed and pending tickets, and check whether an owner is assigned. Because stale tickets can stay stale across many checks, the escalation needs a marker that stops repeat notifications and a clear recipient, such as a team lead.
- Condition: State is open, the last update is older than the threshold, and the owner is unassigned or set to a specific group.
- Risk of repeat firing: Without an escalation marker, every check notifies the same group about the same ticket.
- Risk of overlap with auto-assignment: Auto-assignment rules may change ownership and invalidate the condition in ways you did not intend, so review both together.
- Volume: A broad condition on a large queue can generate many notifications at once, so scope it to groups or priorities.
- Scheduler jobs: If a scheduler job closes stale tickets, the escalation must fire before that job's threshold.
Confirm the evaluation interval, how escalation markers are stored, and the scheduler job limits for your version before you rely on this rule in production.
Setting up Zammad triggers in a test instance first
This sequence takes a trigger from a written business rule to a tested, approved change in production, so each automation is checked against real tickets before agents depend on it. Each step ends with a check that tells the owner whether to move forward.
Write the business rule in plain language
The process owner, usually a support lead, writes one sentence per automation that names the trigger event, the ticket conditions, the expected effect and the people affected. For example, an illustrative rule might read: when a customer replies to a pending ticket, set the state to open and notify the assigned agent. Before any configuration starts, the owner signs off on the sentence and lists the cases it must not affect, such as internal notes or tickets created by agents. The check is that every trigger on the list can be traced to one written rule, and no rule depends on an unstated assumption.
Inventory existing triggers and set naming order
An administrator exports or lists the current triggers in the test instance and compares them with the written rules to find overlaps, duplicates and triggers that already change the same fields. Zammad runs triggers in alphabetical order by name, so the team agrees on a naming pattern, such as a numeric prefix followed by a short description, and applies it to every new trigger. Confirm the exact menu path and ordering behavior in the installed release before documenting it. The check is a short register in which each trigger has a name, owner, purpose and position in the run order.
Build the activator and conditions
The administrator creates the trigger in the test instance, selects the activator and defines conditions that match only the intended tickets. Decide whether the trigger should fire on every update (always) or only when a specific change happens (selective), because this choice drives how often it runs. For time-based escalations, set the time condition and check how it interacts with the ticket state and business hours in the release in use. The check is a saved trigger whose conditions, read back in plain language, match the written rule exactly.
Add actions and confirm email prerequisites
The administrator adds the actions, such as setting state, group, owner, tags or sending a notification. Any action that sends email must use a group email address configured for outbound mail, so confirm that the target group has one in the test instance before saving. Where the message should be in the customer's language, use localized auto-reply templates and check which languages are available in the release. The check is a trigger whose actions list contains only the changes in the written rule, with no action that changes fields the rule does not mention.
Test with sample tickets across channels and roles
A tester creates and updates sample tickets in the test instance through each channel the team uses, such as email, web form, chat or phone, and performs the same actions as an agent, a customer and an administrator. Include edge cases from the written rule, including tickets that match none of the conditions. Record the input, the expected result and the observed result for each case. The check is a test log in which every case matches its expected result, and any mismatch is fixed and retested before the trigger moves on.
Review the trigger log and ticket history
The tester checks the ticket history for each test ticket to confirm which triggers ran, in what order and what they changed, and reviews the application logs for errors. Look for loops, where one trigger repeatedly fires another, and for unexpected notifications. Confirm that agents with overlapping automation, such as macros or auto-assignment, do not reverse the trigger's changes. The check is a signed review that shows each trigger ran once per intended event and changed only the expected fields.
Promote the configuration through change control
The team exports the approved trigger definitions and submits them through its normal change process, with the written rule, the test log, the trigger register and the named approver attached. The production change is applied by an administrator who compares the production result against a short set of live checks, then records the change date and owner. Keep the test instance aligned with production so future tests reflect real configuration. The check is an approved change record and a production ticket that behaves as the test log predicted.
Common Zammad trigger mistakes that break automation
Most broken Zammad automation comes from a small set of design errors: triggers that fight each other, conditions that match more tickets than intended, time-based rules that repeat, and logic that relies on fields nobody can set. Each card names the symptom a team sees and the design change that fixes it, so you can review a trigger set before it reaches production.
Overlapping triggers undo each other
Two triggers change the same field on the same event, such as one setting the group from a customer keyword and another resetting it on update. The symptom is a ticket that flips between states or groups after every save. Zammad runs triggers in alphabetical order by name, so the later trigger wins. Fix this by giving each trigger one owner and a name that shows its place in the sequence, then list every trigger that touches a shared field and confirm the final value in a test ticket.
Zammad requirementsConditions that match too broadly
A trigger with only one loose condition, such as a state or a single tag, fires on tickets it was never meant for, including old tickets touched by a later agent. The symptom is an unexpected auto-reply, a reassignment on tickets owned by another team, or a notification flood. Use selective activators where the business rule needs a specific change, and add conditions for group, customer type, article sender and ticket state together. Test with tickets that should not match, not only the ones that should.
Always-on activators that repeat actions
A trigger set to run on every update, combined with an action that touches the ticket again, can loop or repeat a reply, a notification or a state change. The symptom is duplicate emails to customers and an escalation counter that keeps moving. Choose the activator that matches the event, such as create or a specific update, and guard the action with a condition that becomes false after the first run. Check the article history on a test ticket to confirm each action happens once.
Time-based escalations without state checks
Time-based triggers evaluate tickets that already meet their condition, so an escalation can keep firing for a ticket that was answered, closed or reassigned after the first alert. The symptom is repeated escalation emails for tickets the team has already handled. Add conditions for the state that should stop the escalation, such as pending or open, and for the escalation flag you set on the first run. Review the schedule and the timezone of the scheduler jobs that drive these triggers.
Logic that depends on unsettable fields
A trigger that reads a field customers cannot set, or one agents only see on some screens, works in tests run by an admin and fails in production. The symptom is a trigger that never fires for a real customer request, or fires only when an admin edits the ticket. Confirm that every condition field is populated through the channel and role that normally creates the ticket, such as the web form, email or API. Where a field is optional, make the trigger handle its empty value explicitly.
Group email addresses and localized auto-replies in trigger actions
Any trigger action that sends email from Zammad needs a group email address configured as the sender, so customers see replies from a recognizable mailbox such as a support or billing address rather than a personal agent address. Before you write the trigger, confirm in the admin settings that the group has an email address with working inbound and outbound settings, and that the address on the group matches the one your customers already use. If the group has no email address, the action can send mail that looks unfamiliar or fails to deliver, so this check belongs in the build sequence before any auto-reply is switched on. Also decide which group owns each mailbox, because the sender identity follows the group that the ticket is in when the trigger fires.
Localized auto-replies depend on two things: the customer's language stored on their profile, and text prepared for each language you support. The trigger can only send the right wording if the text exists in that language, so plan the translations as part of the design, not as an afterthought. Use the template text and placeholders consistently across languages, and record who maintains each translation when the wording changes. Confirm in your installed version how Zammad selects the language for a customer, including which field it reads and whether it falls back to the system default, and what happens when no matching translation exists. Those answers decide whether a customer receives a reply in the wrong language or in the default language, so test them rather than assume them.
Test every localized auto-reply end to end before enabling it for production customers. Create a test customer for each supported language, send an email to the group address from outside your network, and check the sender address, subject, body, placeholders and the language of the reply in the mail client that customers actually use. Repeat the test for a customer with no language set and for a language you have not translated, and confirm the fallback behavior you documented. Keep the test records so that the same checks can run again after an upgrade or after a change to the mail settings, since the outbound path is often where a configuration change first breaks.
Security and access considerations for trigger changes
Triggers run automatically on every matching ticket, so a single change can expose customer data or internal notes at scale. The cards below cover who can change triggers, which outbound actions carry the most risk, how changes are traced, and how they are tested before production.
Limit who can edit triggers
Trigger management sits in the admin area, and any administrator who can open it can change what happens to every ticket. Decide which named admins own trigger design, and keep the number small. Check the role and group permissions of other admins, since broad admin access is the easiest way for an unreviewed trigger to reach production. Confirm this list with your own Zammad admin settings before go-live.
Review outbound email actions
A trigger that sends email can forward customer data to an unintended address, or send an internal note to the customer. Check every trigger that sets a recipient, a group email address or an article type, and confirm that internal notes are never part of the email body or templates it uses. Test each email action with an internal and an external recipient before enabling it.
Vet external endpoints
Triggers that call webhooks or other external services move ticket content outside your infrastructure. Record each destination, the fields it receives, and the business owner who approved it. Remove any trigger that points at an endpoint nobody can name. Where your data rules limit where ticket content may go, treat a new external destination as a change that needs sign-off.
Keep an audit trail of changes
Record who created, edited, activated or deactivated each trigger, and when. Keep a change log with the reason for each change and a link to the ticket or request that approved it. Review the log periodically to catch triggers added outside the normal process. Confirm which audit events your Zammad version records and where they are stored before relying on them as evidence.
Test changes in a non-production instance
Build and test each trigger change on a separate Zammad instance loaded with test data, not on live tickets. Check that conditions match only the intended tickets, that email actions reach only the intended recipients and that the execution order is correct. Promote the change to production only after the test results are recorded. Keep the non-production instance on the same version as production so results carry over.
How much effort and outside help do Zammad trigger projects need?
How long does it take to design and test a Zammad trigger set?
No researched figure is available for trigger effort, so treat any duration as something to get in writing rather than assume. The time depends on how many business rules must be turned into triggers, how many of them depend on each other, and how many test cases the team needs to prove each one. A small set covering one channel and one queue is far quicker to design and test than a set that routes email, chat and phone tickets across several groups with escalation timers. Ask any partner to break the schedule into design, build, test and go-live phases, with the test cases listed as deliverables.
What makes a Zammad trigger project cost more or less?
Effort rises with the number of rules, the number of channels that create or update tickets, the languages used in auto-replies, the integrations that receive ticket events, and the approval steps before a change reaches production. Each added condition also needs a negative test, because a trigger that fires too often can send duplicate emails or overwrite agent work. Work that touches email actions needs group email addresses set up first, which adds configuration and verification time. Cost is mostly labor, so the largest cost driver is usually how many decisions the business has not yet made when the build starts.
What does our internal team need to provide before a trigger project starts?
The internal team supplies the business rules, which should state for each case which ticket state, group, priority or tag should change and why. It should also provide anonymized ticket samples from every channel, a list of groups and their members, the languages customers write in, and the exact wording for any auto-reply. Test agents with real roles in each group are needed to check the results, since a trigger that works for an administrator may fail for a group agent with narrower permissions. Missing inputs are the most common reason a fixed scope grows, so confirm them before the quote is final.
Can our own team design and build Zammad triggers without outside help?
Yes, a team with Zammad administration experience can build triggers in-house, and the product documentation covers the trigger model, conditions and execution order. The risk lies in testing. Triggers run in alphabetical order and can trigger each other, so a change in one rule can alter the result of another without any error message. Teams doing it alone should keep a written test matrix, use a staging instance with copied configuration, and have a second person review every rule that sends email or sets a time-based escalation. Outside help is most useful for the review and test stage rather than for typing the rules.
Which parts of a trigger project usually go wrong?
The most common failures come from unclear requirements, untested interactions and missing email configuration. A trigger that uses the always activator can fire on every update and create repeated notifications, while a selective activator with a narrow condition may never fire for a real case. Time-based escalations are easy to set and hard to verify, so they need tests that move time forward or use controlled ticket ages. Localized auto-replies also need checks for each language and for the fallback when the customer language is unknown. Ask for a list of these failure cases in the test plan.
What should a written quote for Zammad trigger work include?
A written quote should list the scope as named trigger rules, the channels and groups each rule covers, and the languages for auto-replies. It should state the deliverables, which typically include the trigger configuration, a test report, a short runbook and a handover session. It should name who performs testing, what test environment is used, and how many revision rounds are included. Ask how the quote handles changes to business rules after the start date, and whether any ongoing review or retainer support is separate. DeployOpen plans most engagements as fixed scope with agreed deliverables and timelines in writing before work starts.
Does a trigger project need ongoing effort after go-live?
Yes, because trigger sets change as teams, queues and business rules change, and each change needs the same review and test as the original build. Operations work includes checking that time-based escalations still fire, reviewing trigger execution after Zammad upgrades, and removing rules that no longer match current practice. Ask whether the quote covers a post-go-live review window and what support is offered after that window closes. Ongoing support, upgrades and continuous testing are available from DeployOpen as retainers.
Limits to confirm in your environment before you rely on triggers
Trigger behavior depends on the installed Zammad release, your timezone settings, and what else touches the same tickets. The items below are things to confirm on a test instance or in the vendor documentation before you build production rules on top of them.
Execution order in your release
Triggers run in alphabetical order by name, so the order you expect depends on how you name them. Confirm in your installed release how the order is applied and whether a trigger that changes state can cause another trigger to fire again. Build a short test set with three to four triggers whose names sort differently, then check the ticket history to see which ran first and which changes stuck.
Software requirementsTime-based activators across timezones
Escalation triggers based on elapsed time depend on how your instance and each agent's profile handle timezones and business hours. Confirm how a time-based activator is evaluated for tickets created in one timezone and worked in another, and whether the scheduler job that drives it runs in system time. A test ticket with a backdated creation time will show the behavior without waiting for a real escalation.
Action limits per trigger
Confirm how many actions a single trigger can perform and whether there is a practical ceiling on the number of triggers that can match one ticket update. Large rule sets that set state, group, tags and send notifications at once can be hard to reason about and to debug. Check the limit in your release before you consolidate rules, and record the result in your configuration notes.
Interaction with macros and core workflows
Macros, core workflows and triggers can all change the same field on the same ticket. Confirm which layer applies when they conflict, whether a macro's changes fire triggers, and whether core workflows restrict a field that a trigger sets through the API. Write one test case for each pair that touches state, group or owner, and keep the results with your change records.
Email actions with group addresses
Trigger actions that send email need a group email address configured as the sender, and missing or unverified addresses can cause sends to fail or fall back to a default. Confirm in your environment which sender address each group uses, whether outbound mail goes through your mail relay, and what an agent or customer sees when a send fails. Send a test notification from each group before you go live.
Localized auto-reply behavior
Auto-replies that switch language depend on the customer's language field and on the text module or template chosen for each locale. Confirm which language value the trigger reads, what happens when a customer has no language set, and whether a missing translation falls back to a default. Send one test message per language you support and check the rendered subject and body.
How DeployOpen scopes and tests Zammad trigger designs
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including Zammad. For trigger work, we start from the rules your team needs, build them in a non-production instance, test each path with real ticket scenarios, and hand over a documented set you can maintain.
How we scope
- We inventory the ticket events, channels and groups that triggers must handle before any rule is written.
- We map each intended automation to its activator, conditions and actions, so the written scope names every rule in advance.
- We agree deliverables and timelines in writing, because most engagements are fixed-scope with a quote following from that scope.
How we build
- We build triggers in a non-production Zammad instance, separating selective and always activators and ordering them alphabetically by name.
- We design time-based escalation triggers against your business rules, and we confirm each group email address works for every email action.
- We write localized auto-reply templates for each language your customers use, and we check the conditions that choose which template fires.
How we hand over
- We test each trigger path with scripted ticket scenarios, including conflicting triggers, and record the expected result of each.
- We document every trigger's purpose, conditions, actions and execution order so your administrators can review and change them.
- We walk your team through the trigger inventory and the test scenarios, so they can rerun them after future changes.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so trigger changes can be reviewed after each Zammad release.
- We can retest trigger behavior after upgrades or configuration changes, against the scenarios agreed in the written scope.
- Ask any provider to confirm how trigger changes are reviewed, tested and rolled back in your production instance before work starts.

