Infos:
- Zammad version: 6.5.0 (self-hosted)
- Installation type: Package (.deb, Ubuntu)
- Operating system: Ubuntu 20.04 LTS
- Browser: Chrome 125, Safari (iPad), Firefox β all tested
Expected behavior:
We want to trigger an internal note automatically when a ticket is moved to a specific group (KI Antwort
), using a macro.
The note should contain a link to our external AI assistant, and this link should include the plain content of the first customer message (article) as a URL parameter, e.g.:
bash
KopierenBearbeiten
https://MEINE DOMAIN/index.html?text=#{ticket.article.plain}
Actual behavior:
The trigger is fired, and the internal note is created.
However, instead of replacing the placeholder, the following text appears in the note:
pgsql
KopierenBearbeiten
https://MEINE DOMAIN/index.html?text=#{ticket.article / no such method}
We also tried #{article.plain}
and #{ticket.latest_article.plain}
, but they return the same error or are not evaluated at all.
Steps to reproduce:
- An incoming ticket (email) is created
- An agent runs a macro that moves the ticket to the group
KI Antwort
- A trigger detects the group change and tries to add an internal note with:
bash
KopierenBearbeiten
https://MEINE DOMAIN/index.html?text=#{ticket.article.plain}
- The note is added, but the placeholder is not replaced β instead we see:
#{ticket.article / no such method}
Question:
- Is it possible to reliably access the plain content of the first article (
#{ticket.article.plain}
or similar) inside an internal note via trigger? - Or is this not supported by design in the trigger context?
- Any suggested workaround?
Thanks a lot for any tips or clarification!