Batch ticket update not updating in time
Hi,
I have implemented batch ticket updating in order to automate linking/unlinking various tickets to each other through the incident/problem organization.
https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#update-many-tickets
My query will retry the batch url endpoint until the status is "completed", at which point I'll use the show ticket or show tickets endpoint to retrieve the new updated values. This is important so that I can grab the updated_at timestamp since these updates use "safe_update = True", and so I can return it to my front end application.
https://developer.zendesk.com/api-reference/ticketing/tickets/tickets/#show-ticket
However, I've noticed that the show ticket endpoint returns stale values (prior to my updates) despite the update batch job marking the updates as successful and completed. I know there may be a delay in the Search Api as tickets are indexed, but query directly for a ticket doesn't have a delay listed anywhere.
Is there either a way I can sideload the ticket info on the batch result endpoint (with updated values) or is there a known limitation with timing of these updates?
-
Hi Jason! I'm not aware of any delays here, however there is a certain amount of propagation to all databases after an update is made. No idea what that would be specifically...I would assume <1s, but that's a guess...so could you tell me what the time delay is between the update and when you're fetching the data? If you could also give me a timestamp in UTC from when this happened, that would help me check the logs to get some additional info.
-
Ah I realized I had a different issue which is that the update was actually failing.
The operation I'm trying to do is take a problem ticket with several incident tickets and swap it with one of the child incidents (demote the problem to an incident, promote one of the incidents to being a problem, and point to all the incidents to it).A couple of issues,
- If any of the incident tickets are closed, they cannot have any further updates and are stuck pointing to the old problem (now incident)
- It seems regardless of the order I provide updates in the batch, all of the re-pointing fails because the new problem is not a valid target. It seems to be fine that I can demote a problem with incidents looking at it but I can't point any incidents to a ticket which is in the process of becoming a problem.
Iniciar sesión para dejar un comentario.
2 Comentarios