Question
Follow-up tickets inherit all the original ticket data, including all custom ticket fields and ticket tags. How can I reset drop-down field values for follow-up tickets?
Answer
Drop-down field options and checkbox fields are directly connected to their assigned tag. For example, in the image below, the option "Red" is connected to thecolor_red
tag. If a ticket has the field tag applied, the field value is updated accordingly.
If your closed ticket had "Red" selected for this drop-down field, the color_red
tag was applied to that ticket when it moved to closed. The follow-up ticket inherited this tag, so its drop-down ticket field is pre-populated upon creation.
You cannot clear numeric ticket fields, decimal ticket fields, single line, and multi-line text fields upon follow-up ticket creation. However, you can reset the ticket fields that link to ticket tags, drop-down, and checkbox fields through a trigger that replaces the previous tag value of the custom fields.
To create the trigger
- Create a trigger
- Add the conditions below under Meet ALL of the following conditions
- Object > Ticket > Ticket | Is | Created
- Object > Ticket > Channel | Is | Closed ticket
- Under Actions, add:
-
Object > Ticket > Set tags |
follow_up
-
Object > Ticket > Set tags |
- Click Create trigger
This action removes all the tags from the ticket and replaces them with the tag follow_up
to clear out the previous field values. For more details, see the article: Understanding tags and ticket fields.
13 comments
Sara Ledger
I agree with Naomi's comment: https://support.zendesk.com/hc/en-us/articles/206233498/comments/360005506834
We have a list of over 100 tags and this will not work as a work around for us when we need to leave certain tags on and remove others, especially when we cannot easily obtain a list of all existing tags in Zendesk.
0
Dave Dyson
Hi @... & @... -
Thanks for this feedback – the best way to ensure that our product team see this would be to create a post in our Product Feedback forum: Feedback on Support. It's especially useful if you can check our guidelines, and add as much detail as you can on the nature and impact of the problem: Product feedback guidelines & how to write a good feedback post
(I've already searched the forum and I don't see any feedback posts that talk about this, so you can skip that step at least)
0
Matthew Feczko
Agreed, we have the exact same issue. We're using a multi-select field as a way to track macros (each macro used, we turn on that value, so we know which tickets use which macros). But when a follow-up is created, we want to remove all of the macros tracked tags.
0
Matthew Feczko
@... how would you do it using an http target? Could you explain that? I'm quite keen to do this as well!
0
Andrew J
Matthew, what specifically are you wanting to achieve?
0
Matthew Feczko
Hi @...,
Because there's no way to track macro usage within Zendesk, we've come up with a way where we use a multi-select field and put in a value for each macro in the system with the tag being the ID of the macro (so something like m_367589749083 for an ID for Macro 1). The field is then hidden from the form, but activates (and value is set) when Macro 1 is used. Thus if a ticket has had 3 macros on it, Macro 1, 2, and 3, then we can track that easily.
However, if the ticket is closed and a follow-up is open, we want to clear those tags, and essentially clear that whole multi-select value because it's as if it's a new ticket and no macros have been used.
How can I clear that field when a follow-up is created?
Thanks!
0
Austin Killey
Hey there @...,
Andrew might have some other suggestions in mind, but if it's cool with you, I'd be happy to chime in as well! 2 big options come to mind here:
1. Safer, native method (but more tedious): Setting up a trigger with a condition of "Channel > Is > Closed Ticket", where you could apply an action of "Remove tags" and then type out every tag that your multi-select field uses. Depending on how many values your field has, that might get a bit wild.
2. The non-supported method: Using an HTTP target just like you mentioned earlier. The reason we can't officially support this method is due to the risk of race conditions but, still very much possible if you choose to go this route. You'd want to set up an HTTP target to point towards https://yoursubdomain.zendesk.com/api/v2/{{ticket.id}}.json using a PUT method.
From there, that's where you can set up a trigger with the same condition of "Channel > Is > Closed Ticket" along with something like "Your multiselect field here > Present", so that this trigger only fires if your multi-select field has some kind of value already applied.
Lastly, this is where you could set up a trigger action of "Notify target > your HTTP target here", where you'd use a payload like this to clear out your multi-select field:
Hope this helps!
0
Sara Ledger
https://support.zendesk.com/hc/en-us/community/posts/4407468237338-Reset-Ticket-Field-Values-for-Follow-Up-Tickets has been created as feedback to this question.
Thank you @...
1
Dave Dyson
Thanks, @...!
0
Alan Holmes
I'd like to bump this thread. The inability to clear all fields for this type of new tickets including lookup fields is a real issue.
0
Joey
Single line text fields can be cleared in triggers by setting them to __NULL__
0
Dainne Kiara Lucena-Laxamana
Thanks Joey !
0
Naomi Greenall
So setting the action Under Actions, add:
Ticket Set tags |
follow_up
will get rid of all the others tags? There is nothing else I would need to do outside of the recipe you sent? I would love some more information.0