You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I manage to use Triggers to update fields found in tickets. But what I want is to create a Ticket that send a comment to the user.
Ideally, you can translate it to this code line below (Although it does not work, but it is ideally what I want it to do) trigger_audit = zenpy_client.triggers.create(Trigger(actions=[{"field": "comment_value", "value": "Thanks for your request. This issue you reported is a known issue. For more information, please visit our forums. "}], conditions=condition, active=False, title=f'A Trigger' ))
How can I achieve this?
The text was updated successfully, but these errors were encountered:
Triggers documentation is here.
In theory you should be able to create a trigger as you alluded to.
Please look at the Trigger model to see what fields you will likely need to meet minimum requirements for saving/modifying.
Yes I managed to use triggers and conditions but I was unable to use the triggers to send a comment to the user. According to this link: https://developer.zendesk.com/documentation/ticketing/reference-guides/actions-reference/ , to use a trigger for adding a comment was part of the "Additional actions for macros" as mentioned in the "comment_value" field, but so far I have been unsuccessful in doing so. Was wondering if it's possible to provide and example on how to do it.
I manage to use Triggers to update fields found in tickets. But what I want is to create a Ticket that send a comment to the user.
Ideally, you can translate it to this code line below (Although it does not work, but it is ideally what I want it to do)
trigger_audit = zenpy_client.triggers.create(Trigger(actions=[{"field": "comment_value", "value": "Thanks for your request. This issue you reported is a known issue. For more information, please visit our forums. "}], conditions=condition, active=False, title=f'A Trigger' ))
How can I achieve this?
The text was updated successfully, but these errors were encountered: