Methods > glpi.setTicketAssign

This method is only accessible by authenticated users

Version Comments
1.3.2 Method added

Assign a ticket

input a hastable

  • help option to get usage information
  • ticket : ID of the ticket, mandatory
  • user : ID of the technician, optional
  • group : ID of the technicians group, optional
  • supplier : ID of supplier,optional
  • user_email : enable notification to this email address (must be valid), optional
  • use_email_notification : enable notification to the user's email (if known), optional

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

need at least one of parameter user, group or supplier
Call example

$ php testxmlrpc.php --session=7u6kc0gumu92mun99pn8ltoqf0 method=glpi.setTicketAssign --ticket=57 --user=8 group=7
+ Calling 'glpi.setTicketAssign' on http://localhost//glpi083/plugins/webservices/xmlrpc.php?session=7u6kc0gumu92mun99pn8ltoqf0
+ Response: Array
(
(
    [id] => 57
    [entities_id] => 1
    [name] => nelly 130113-3
    [date] => 2013-01-13 08:42:17
    [closedate] => 
    [solvedate] => 
    [date_mod] => 2013-01-13 13:06:04
    [users_id_lastupdater] => 8
    [status] => new
    [users_id_recipient] => 8
    [requesttypes_id] => 7
    [suppliers_id_assign] => 0
...

   [users] => Array
        (
            [requester] => Array
                (
                    [0] => Array
                        (
                            [id] => 38
                            [users_id] => 8
                            [use_notification] => 1
                            [alternative_email] => 
                        )

                )

            [observer] => Array
                (
                )

            [assign] => Array
                (
                )

        )

    [groups] => Array
        (
            [requester] => Array
                (
                )

            [observer] => Array
                (
                )

            [assign] => Array
                (
                    [0] => Array
                        (
                            [id] => 33
                            [groups_id] => 7
                        )

                )
...
)