You are not logged in.
Hi Guys,
I am trying to create an overload interface for glpi using the api.
Everything is going well but I have a problem with ticket users, I can't figure it out.
For instance in the API response of a ticket, I cannot find the information of the user who created the ticket, and who is assigned to the ticket (assigned technician).
{
"id": 136,
"entities_id": 2,
"name": "lmlmlm",
"date": "2021-04-19 10:26:27",
"closedate": null,
"solvedate": null,
"date_mod": "2021-04-20 13:46:30",
"users_id_lastupdater": 2,
"status": 2,
"users_id_recipient": 2,
"requesttypes_id": 1,
"content": "<p>lmlmlm</p>",
"urgency": 3,
"impact": 3,
"priority": 3,
"itilcategories_id": 5,
"type": 1,
"global_validation": 1,
"slas_id_ttr": 0,
"slas_id_tto": 0,
"slalevels_id_ttr": 0,
"time_to_resolve": null,
"time_to_own": null,
"begin_waiting_date": null,
"sla_waiting_duration": 0,
"ola_waiting_duration": 0,
"olas_id_tto": 0,
"olas_id_ttr": 0,
"olalevels_id_ttr": 0,
"ola_ttr_begin_date": null,
"internal_time_to_resolve": null,
"internal_time_to_own": null,
"waiting_duration": 0,
"close_delay_stat": 0,
"solve_delay_stat": 0,
"takeintoaccount_delay_stat": 1,
"actiontime": 0,
"is_deleted": 0,
"locations_id": 0,
"validation_percent": 0,
"date_creation": "2021-04-19 10:26:27",
Here we can find the : "users_id_recipient": 2, 2 is glpi user; and when i check on glpi interface, glpi is not the creator, and not the assigned technician of the ticket ...
Anyone can help me ? pleaseeeeeeeeeeeeeee
Thanks a lot
D
Offline
I answer my self because i just found how to by using the url : http://localhost/glpi/apirest.php/Ticket/xxx/Ticket_User
Offline