It would be great to be able to use the previous value of a variable. Especially regarding ticket objects like Group or Owner.
For example you could build a macro named “Grant approval” which would set an appropriate tag and give the ticket back to the previous group. Or you could use a variable like “#{ticket.group.previous.name}”.
So you would create a macro way more flexible than referring to a specific group.
Zammad System notifications are already using the last value of different objects when informing about a ticket update:
/opt/zammad/app/views/mailer/ticket_update/de.html.erb:
<% if @objects[:changes].present? %>#{t('Changes')}:<% end %>
<% @objects[:changes].each do |key, value| %> <%= t key %>: <%= h value[0] %> -> <%= h value[1] %>
<% end %>