How to use recipient user details(firstname, lastname) and current timestamp variables in email body from scheduler

  • Used Zammad version: 5.4.x
  • Used Zammad installation type: docker-compose
  • Operating system: Ubuntu 20.04.6 LTS
  • Browser + version: Chrome Version 120.0.6099.217

I have created a scheduler in Zammad to send emails to specific recipients with few variables/tags in email body. It’s not replacing the tags properly in actual email. I am not sure about which variable should I use for this purpose - there is no mention in community or Zammad documentation for these common variables.

Expected behavior:

It should replace following variables/tags in email body:-

  • #{user.firstname} – recipient first name
  • #{user.lastname} – recipient last name
  • #{Time.now} – current timestamp

Actual behavior:

  • It’s not replacing the tags/variables.

======================= Processed email body =================
Dear #{Email / no such object} #{user / no such object} #{user / no such object},

This email addresses your assigned task/deliverable for “Ticket tile…” http://baseurl/view-ticket/87309, originally due on 01/16/2024 1:48 pm (Asia/Kolkata). While we appreciate your ongoing efforts, the task remains incomplete as of today, #{Time / no such object}. This unfortunately constitutes a Service Level Agreement (SLA) breach based on our established timeframe for this project.

SLA Commitment: [Specific SLA timeframe, e.g., completion within 5 business days] #{sla / no such object}

Steps to reproduce the behavior:

  • Configure a scheduler to send emails for certain conditions. Use these tags/variables in discussion in email body.
  • Pick few users as recipients

The scope does not fit.
A scheduler is running outside of the user scope, so you’ll have to use the ticket customer scope if that’s what you’re looking for.