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
Guest
Registered: 2013-06-15
Posts: 2

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: 4,160

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...
*GLPI 9.1.6+fusion9.1+1.1+behaviours1.5.0+reports+fields+appliances+pdf+badges+formcreator2.5.2 PHP7.0 Mariadb10
*GLPI 9.2.4(behaviours1.5.2+fusion9.2+1.0+applicatifs2.3.0+dashboard 0.8.9)hebergé sur serveur mutualisé.
*GLPI 9.3.1  en test (ubuntu 16.04 mariadb 10.2.4)

Offline

Board footer

Powered by FluxBB