Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

I want to dynamically edit Tags once a ticket is created using liquid Markup



Gepostet 11. Juli 2023

I'm currently attempting to use liquid markup to remove from the ticket.tags array all instances of ":clone" from all present tags. 

{% assign cloned_tags = ticket.tags %}
{% assign tags_without_text = cloned_tags | remove: ":clone" %}
{% assign ticket_tags = tags_without_text%}
{% assign tags= ticket_tags%}

This code achieves this perfectly but once I attempt to assign the edited tags to {{ticket.tags}} either through API or elsewhere, it doesn't work. Does anyone know why this might be and or how to solve this?


1

1

1 Kommentar

image avatar

Christopher Kennedy

Zendesk Developer Advocacy

Hi Michael,
 
If you're removing tags, it may be simpler to set up a trigger to do so using the remove tags action.  Would this fit your use case?

0


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post