You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-01-05 11:59:44

mmoral
Member
Registered: 2023-12-28
Posts: 50

Create ticket with a watcher assigned

Hello,

In this Topic (280849) I see a parameters to set the Requester and the Tecnician directly in the ticket creation instead of the use first the 'Ticket' and later the 'Ticket_User' to set the users.
There are any parameter to set the watcher directly in the ticket creation?

How can I know/obtain all the supported parameters?


Thanks!

Offline

#2 2024-01-05 15:45:38

cconard96
Moderator
Registered: 2018-07-31
Posts: 3,268
Website

Re: Create ticket with a watcher assigned

"_users_id_observer" is the field for the watcher when creating a new ticket.

For knowing the supported fields, it is essentially all of the columns in the related database table. For hidden/special fields like _users_id_observer which aren't stored in the ticket's table but are instead used to create extra data in other tables, it requires more knowledge of how GLPI works internally/looking at the source code. A new API will be coming with GLPI 10.1 (the old API will still exist too) which has a well-defined set of endpoints and fields to be more user friendly.
https://github.com/glpi-project/glpi/pull/12221


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2024-01-08 13:08:50

mmoral
Member
Registered: 2023-12-28
Posts: 50

Re: Create ticket with a watcher assigned

Thanks for all Curtis!

Offline

Board footer

Powered by FluxBB