Recent searches
No recent searches
Problemas para actualizar el estatus de un billete usando python
Posted Nov 29, 2023
Hola, estoy tratando de hacer un script utilizando la libreria Zenpy de Python en el cual quiero cambiar el status automaticamente de algunos billetes a "Solved", mi problema es que recibo el siguiente error cuando corro el script:
Error updating ticket: {"error": "RecordInvalid", "description": "Record validation errors", "details": {"custom_status_id": [{"description": "Custom status is invalid", "error": "InvalidValue"}]}}
He verificado que el ID del estatus "Solved" sea el correcto, pero aun asi sigo teniendo el mismo resultado.
Objects and rules > Tickets > Ticket statuses > Edit ticket status > 13315929
Edit ticket status
Default
View and edit your ticket status details
Solved
"custom_status_id": 13315929
Esta es la parte del codigo que me generea el error:
SOLVED = 13315929
# Retrieve the open ticket
open_ticket = zenpy_client.tickets(id=str(open_ticket_id))
# Set the required fields before updating the status
open_ticket.ticket_type = 'Problem'
open_ticket.priority = 'Normal'
open_ticket.status = 'Solved'
open_ticket.custom_status_id = SOLVED
# Update the open ticket
zenpy_client.tickets.update(open_ticket)
Gracias
0
2
2 comments
Javier DM
Saludos y que tengas excelente fin de semana!
0
Jose Ortega
Que tal Javier, si el problema esta resuelto, muchas gracias.
Saludos y buen fin de semana a ti también.
0