How to copy values between fields using triggers
I'm currently trying to create a trigger to copy a custom text field on a ticket into a custom user field. When I use the following placeholder as the value to set user field to on the action, it doesn't treat the placeholder as a variable, and instead literally copies this text into the user field:
{{ticket.ticket_field_4971504499091}}
See below for a screenshot of what I'm trying to do:
-
Hi Paul,
Unfortunately, placeholders aren't useable as the values when creating triggers. Your use case might be something our product team would be interested in hearing about – would you mind creating a post in our Feedback - Ticketing System (Support) topic, using this template?
-
hey PAUL STRAUSS,
You could look to create a webhook that can update data inside of a ticket field. Check out this article we have on how to do this here:
How to copy ticket data into a custom field using a webhook
Let us know how you go. :)
-
Thanks Amie SuccessCX ! This looks like it could be just the thing I need. I just need to see I I can use the same approach to copy a ticket custom text value to a user custom field. Gonna give that a try.
-
Hey PAUL STRAUSS
Wondering if you managed to get it to work and what the JSON looked like that you used? I'm looking to push data from a custom user profile field into a custom ticket field upon ticket creation. Can't quite seem to get it working but I figure if you did, I could reverse engineer what you did for my needs. :)
Best,
Amie
-
Hi @Amie Brennan
Thank you for sharing the sample webhook. While your example is from string + ticket number for the value of a custom field. Is it possible to get the initial value from a certain text field instead?
Ex.
get the value of field #1 "4413122487577" and paste it to field #2 "4413122501657"I'm using this one, and it gives me a parse error.
JSON Body:
{"ticket": {
"custom_fields": [{"id": 4413122487577, "value":"id": 4413122501657}]
}
}
Another question:
Similar to your example, have you tried creating a webhook to get the ticket ID from a follow-up ticket?
The final goal is to create a webhook that will get the follow-up ticket ID and automatically set it as an incident / link to the problem ticket
Sorry for having so many questions :( but thank you in advance :)
Respectfully,
Yanni
Please sign in to leave a comment.
5 Comments