Custom Object in Agent Email Notification

I would like to include a custom object from the form in the Agent Email Notification.
I have created a .custom file under the agent mailer folder which is working correctly but I have been unable to get the object to work.

I have tried adding different variables to get it to work but i have been unsuccessful.
I was unable to find the answer in the docs or in the commuity anywhere.

Im sure it is a really simple fix!

I have tried:
#{ticket.where}
#{object.where}
#{ticket.object.where}

Infos:

  • Used Zammad version: 6.4.1
  • Used Zammad installation type: Package?
  • Operating system: Ubuntu
  • Browser + version: Chrome

Expected behavior:

Added object variable to agent email notification to appear in sent emails

Actual behavior:

Variable says not allowed

Steps to reproduce the behavior:

New ticket (#{ticket.title})

Hi #{recipient.firstname},

The new ticket (#{ticket.title}) has been created by "#{current_user.longname}".

Group: #{ticket.group.name}
Owner: #{ticket.owner.fullname}
State: #{t(ticket.state.name)}
Where: #{ticket.where}

<% if @objects[:article] %>
Information:
#{article.body_as_html}
<% end %>

I keep receiveding the below message in the emails

Where: #{ticket.where / not allowed}

When this email gets sent, is there a log entry in /var/log/zammad/production.log warning about the access restriction on the ticket.where object?

where is a reserved word in ruby. Congrats.
I guess that’s another word for the blocklist @fliebe92 @dominikklein

1 Like

Hi @nacnudz. Could you please create a bug report in the Zammad GitHub repository? Thanks a lot.