That’s not possible out of the box. This is a decision we made. We used to have it in the past but it was only rarely used and in the end was not much help for agents.
If you want to add that to the submission form you can, but it will require a fair amount of coding for adding the field and saving its value.
Thread Starter
anonymized-11892634
(@anonymized-11892634)
Hi Julien,
That’s ok, I expected it to require some customisation. I’m just not sure which filters/functions are best to use. So it would be super awesome if you could point me to the filters/functions, then I can look into this myself.
My current thought is to create a custom field which is hidden, then pre-populate this with a url variable. This will be the way to “set” the tag in the form submission. I can then use this with wp_set_object_terms() to assign to the ticket …maybe?
I appreciate this is out of scope for support, but any advice you can give would be great. Even just pointing to filters/functions 🙂
Thanks!
Phil
Thread Starter
anonymized-11892634
(@anonymized-11892634)
Hi Julien,
As a side question, is it possible to set a specific Status for a ticket when it is submitted? If so, I won’t actually need to use tags.
Thanks,
Phil
You’re asking a very good question. It is currently not possible to set a specific status on ticket creation because there is no filter that can be used. I think there should be a filter. I will add that in the next version. To be followed here: https://github.com/Awesome-Support/Awesome-Support/issues/270
Meanwhile, your initial solution would work, but it could add some security issues because of the URL vars, unless you sanitize and check thoroughly the input against the db values.
You can hook onto wpas_open_ticket_after
for processing extra data. The action will give you the ID of the ticket just created and the data that’s been inserted.