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 2019-01-09 22:58:01

carlosbmc
Guest
Registered: 2016-12-01
Posts: 115

Get list all tickets for technician user

Hello

using Api REST, How can I get all tickets asigned to me?
(having user_token and session_token)

I can obtain the detail of a ticket /apirest.php/Ticket/xxx/?session_token=xxxxxx&app_token=yyyyyyyy

But I can not found the object wich list the tickets

Thcnk you


GLPI 9.2;; FusionInventory: 9.2+1.0;; GLPI Modifications 1.1.4;; Notifications 1.1.9;;  Dashboard 0.8.8;; PHP 5.6.30

Offline

#2 2019-01-10 18:26:38

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 4,545

Re: Get list all tickets for technician user

try this

/apirest.php/search/Ticket/?is_deleted=0
&criteria[0][field]=12&criteria[0][searchtype]=equals&criteria[0][value]=notold
&criteria[1][link]=AND&criteria[1][field]=5&criteria[1][searchtype]=equals&criteria[1][value]=$userid


Trouver la panne avant de réparer...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.4.2(behaviours2.2.1+fusioninventoty 9.4+1.1+applicatifs2.5.0+fields 1.9.1)hebergé sur serveur mutualisé.

Offline

#3 2019-01-11 13:20:37

carlosbmc
Guest
Registered: 2016-12-01
Posts: 115

Re: Get list all tickets for technician user

Thanks , it seems to work,  I will test with the parameters of the expression


GLPI 9.2;; FusionInventory: 9.2+1.0;; GLPI Modifications 1.1.4;; Notifications 1.1.9;;  Dashboard 0.8.8;; PHP 5.6.30

Offline

Board footer

Powered by FluxBB