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 2018-02-06 07:26:59

chenjeff622
Member
Registered: 2013-06-15
Posts: 4

need some help with create Ticket

how to create new Ticket and Associated elements Item (like Computer or Others)? it seems some base field only.
{
   "id":2839,
   "entities_id":4,
   "name":"windows 2003",
   "date":"2014-03-18 10:33:00",
   "closedate":null,
   "solvedate":"2014-03-18 10:46:36",
   "date_mod":"2018-02-06 12:14:54",
   "users_id_lastupdater":8,
   "status":5,
   "users_id_recipient":8,
   "requesttypes_id":4,
   "content":"",
   "urgency":3,
   "impact":3,
   "priority":3,
   "itilcategories_id":4,
   "type":1,
   "solutiontypes_id":2,
   "solution":"",
   "global_validation":1,
   "slas_ttr_id":0,
   "slas_tto_id":0,
   "ttr_slalevels_id":0,
   "time_to_resolve":null,
   "time_to_own":null,
   "begin_waiting_date":"2014-03-18 10:46:36",
   "sla_waiting_duration":0,
   "ola_waiting_duration":0,
   "olas_tto_id":0,
   "olas_ttr_id":0,
   "ttr_olalevels_id":0,
   "internal_time_to_resolve":null,
   "internal_time_to_own":null,
   "waiting_duration":0,
   "close_delay_stat":0,
   "solve_delay_stat":816,
   "takeintoaccount_delay_stat":248,
   "actiontime":0,
   "is_deleted":0,
   "locations_id":1,
   "validation_percent":0,
   "date_creation":null
                                   <--- insert Associated elements?????
}

Last edited by chenjeff622 (2018-02-06 07:45:41)

Offline

#2 2018-02-08 20:29:19

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

Re: need some help with create Ticket

I think you should first create tickets and then associate items to tickets.  (similar to  ticket actors)

something like     ticket/$myTicketID/Item_Ticket   returns
{"id":2,
"itemtype":"Computer",
"items_id":1,
"tickets_id":245
}

Last edited by LaDenrée (2018-02-08 23:53:57)


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

Board footer

Powered by FluxBB