Portal Customisation : how to Iterate tickets list?

Hi there,

I have a question related to portal customisation. We got a requirement from client to hide tickets based on value from tag field. We have gone through the portal source code. This is the code which renders the ticket list.
{% snippet ticket_list %}

We have tried this way to iterate tickets but it doesn’t work for us.

{% for ticket in ticket_list %}
  {{ ticket.subject }}
{% endfor %}

It would be helpful if someone help us to sort it out for us.

Thanks in advance!

Best Regards,