Methods > glpi.addTicketFollowup

This method is only accessible by authenticated users

Version Comments
1.2.0 Add source and private options
0.2.0 Method added

Add a followup to a existing ticket if the authenticated user can edit it.

input a hastable

  • help option to get usage information
  • ticket : ID of the ticket, mandatory
  • content : of the new followup, mandatory
  • users_login : users login - if you want to check rights of user with checkApprobationSolution function for logged user not allowed, optional
  • source : name of the 'RequestType' (created if needed), optional, default WebServices
  • private : optional boolean, default 0
  • reopen : set ticket to working state (deny solution for "solved" ticket or answer for "waiting" ticket)
  • close : close a "solved" ticket (approve the solution)

For solved ticket, reopen or close option is mandatory

For closed ticket, adding a new followup is refused

return a hastable if succed (as for glpi.getTicket)
  • fields of glpi_tracking
  • followups an array of hasble : fields of glpi_followups

Call example

$ php testxmlrpc.php --session=j4mp77bmqu428ff38gufl3fvi3  --method=glpi.addTicketFollowup --ticket=16 "--content=a new message" 
+ Calling 'glpi.addTicketFollowup' on http://localhost//glpi072/plugins/webservices/xmlrpc.php?session=j4mp77bmqu428ff38gufl3fvi3
+ Response: Array
(
    [id] => 16
    [entities_id] => 1
    [name] => Need help
    [date] => 2009-08-25 10:30:50
    [closedate] => 
    [date_mod] => 2009-08-25 10:35:21
    [status] => new
    [users_id] => 6
    [users_id_recipient] => 6
    [groups_id] => 0
    [users_id_assign] => 0
    [suppliers_id_assign] => 0
    [groups_id_assign] => 0
    [itemtype] => 0
    [items_id] => 0
    [content] => I can't send a mail
    [urgence] => 3
    [impact] => 3
    [priority] => 3
    [user_email] => 
    [use_email_notification] => 0
    [realtime] => 16
    [ticketscategories_id] => 1
    [cost_time] => 0.0000
    [cost_fixed] => 0.0000
    [cost_material] => 0.0000
    [followups] => Array
        (
            [0] => Array
                (
                    [id] => 31
                    [date] => 2009-08-25 10:35:21
                    [users_id] => 6
                    [content] => a new message
                )
        )
)