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
Member
Registered: 2016-12-01
Posts: 159

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.5.2;; FusionInventory: 9.2+1.0;; GLPI Modifications 1.1.4;; Notifications 1.1.9;;  Dashboard 0.8.8;; PHP 7.3.33

Offline

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

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,167

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...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

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

carlosbmc
Member
Registered: 2016-12-01
Posts: 159

Re: Get list all tickets for technician user

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


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

Offline

Board footer

Powered by FluxBB