Methods > glpi.setTicketSolution

This method is only accessible by authenticated users

Version Comments
1.3.2 Method added

Solution for a ticket

input a hastable

  • help option to get usage information
  • ticket : ID of the ticket, mandatory
  • type : id, type of the solution
  • solution : text of the solution, mandatory

return a hastable if succed (as for glpi.getTicket)

Call example

$ php testxmlrpc.php --session=bc0f660a012lm6l1cluujk3b63 --method=glpi.setTicketSolution --ticket=48 --type=1 --solution="solution of the ticket" 
+ Calling 'glpi.setTicketSolution' on http://localhost//glpi083/plugins/webservices/xmlrpc.php?session=bc0f660a012lm6l1cluujk3b63
+ Response: Array
(
    [id] => 48
    [entities_id] => 1
    [name] => nelly 3112-test 2
    [date] => 2012-12-31 18:30:31
    [closedate] => 
    [solvedate] => 2012-12-31 18:49:55
    [date_mod] => 2012-12-31 18:49:55
    [users_id_lastupdater] => 8
    [status] => solved
    [users_id_recipient] => 8
    [requesttypes_id] => 7
    [suppliers_id_assign] => 0
    [itemtype] => 
    [items_id] => 0
    [content] => description du ticket
    [urgency] => 3
    [impact] => 3
    [priority] => 5
    [itilcategories_id] => 0
    [type] => 1
    [cost_time] => 0.0000
    [cost_fixed] => 0.0000
    [cost_material] => 0.0000
    [solutiontypes_id] => 1
    [solution] => solution of the ticket
    [global_validation] => none
    [slas_id] => 0
    [slalevels_id] => 0
    [due_date] => 
...
)