Having App Automatically "Submit" Ticket
Hello,
I'm attempting to create a timer app that will automatically add a tag to the ticket after a certain number of minutes.
What works so far:
- Timer is able to be applied with click of a button
- Timer counts down correctly
- Timer continues even when ticket is adjusted or closed by user
- A Tag is applied after timer is done
The issue:
- When the timer is done, the tag is just placed and requires a user to “Submit” the ticket
- After the app was updated to automatically “Submit” tickets it began throwing the error: Failed to submit ticket: {"name":"Error"}
- The app builder replied with:
-
Now I can see the issue. The documentation doesn't show a
ticket.submitaction. Let me check if there's a different way to submit tickets or if we need to use a different approach. -
Looking at the documentation, I notice there are ticket submission events (
ticket.submit.start,ticket.submit.done, etc.) but no explicitticket.submitaction. The error suggests thatzafClient.invoke('ticket.submit')is not a valid action. - Let me fix this by removing the automatic ticket submission functionality and instead provide clear messaging about what the test timer does:
-
Now I can see the issue. The documentation doesn't show a
Was wondering if anyone had more experience with getting an app to automatically update tickets. Seems like it either can't or I'm just not prompting it correctly?
