Liquid logic markup for ticket tags | Community
Skip to main content

Liquid logic markup for ticket tags

  • July 11, 2022
  • 2 replies
  • 0 views

Panning,

Basically I'm trying to mimic a condition for "Tags - Contains at least one of the following - 'foobar'" but as liquid markup. Is there a way for a liquid `{% if %}` to look at ticket tags for the presence of a specific tag? I'm not finding this specific answer in docs / other posts, but piecemealing various things I'm wondering if this is it;

{% if ticket.tags contains 'foobar' %}

 

2 replies

Dave12
  • July 12, 2022
Hi Ryan,
 
Yep, that should do it! I've tested in my own account that works perfectly. Nice work!

Panning,
  • Author
  • July 12, 2022

Awesome, I'll be trying that out today. Thanks for confirming @dave12