Question

Can I apply a math equation to custom, numerical, ticket fields?

Answer

Yes, you can apply equations with liquid markup, in a trigger or automation. Use the liquid codes below, replacing 001 and 002 with your actual ticket field ID.

Example field ID.png

For multiplications

{{ticket.ticket_field_001 | times: ticket.ticket_field_002}}

For additions

{{ticket.ticket_field_001 | plus: ticket.ticket_field_002}}

For subtractions

{{ticket.ticket_field_001 | minus: ticket.ticket_field_002}}

For divisons by

{{ticket.ticket_field_001 | divided_by: ticket.ticket_field_002}}
Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code. Zendesk also can't provide support for liquid markup, see this Github article for more information: Liquid for designers. Post any issues you have in the comments section or try searching for a solution online.

For additional information, see these articles:

  • Understanding Liquid markup and Zendesk Support
  • Using Liquid markup case statements to support dynamic messages in automations, macros, and triggers
Powered by Zendesk