Recent searches
No recent searches
Liquid logic markup for ticket tags
Answered
Posted Jul 11, 2022
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' %}
0
2
2 comments
Dave Dyson
Yep, that should do it! I've tested in my own account that works perfectly. Nice work!
1
Ryan P.
Awesome, I'll be trying that out today. Thanks for confirming @...
0