GlpiaddTicketDocument » History » Version 1

remi, 08/25/2009 02:24 PM

1 1 remi
h1. [[En_devguide#Provided-Methods|Methods]] > glpi.addTicketDocument
2 1 remi
3 1 remi
Add a document to a existing ticket if the authenticated user can edit it.
4 1 remi
5 1 remi
*input* a hastable
6 1 remi
7 1 remi
* *help* option to get usage information
8 1 remi
9 1 remi
* *tracking* : ID of the ticket
10 1 remi
* *content* : of the new folloup
11 1 remi
12 1 remi
*return* a  hastable if succed (as for [[glpi.getTicket]])
13 1 remi
* fields of *glpi_tracking* 
14 1 remi
* *followups* an array of hasble : fields of *glpi_followups*
15 1 remi
16 1 remi
Call example
17 1 remi
<pre>
18 1 remi
$ php testxmlrpc.php --session=j4mp77bmqu428ff38gufl3fvi3  --method=glpi.addTicketFollowup --ticket=16 "--content=a new message"
19 1 remi
+ Calling 'glpi.addFollowup' on http://localhost//glpi072/plugins/webservices/xmlrpc.php?session=j4mp77bmqu428ff38gufl3fvi3
20 1 remi
+ Response: Array
21 1 remi
(
22 1 remi
    [id] => 16
23 1 remi
    [entities_id] => 1
24 1 remi
    [name] => Need help
25 1 remi
    [date] => 2009-08-25 10:30:50
26 1 remi
    [closedate] => 
27 1 remi
    [date_mod] => 2009-08-25 10:35:21
28 1 remi
    [status] => new
29 1 remi
    [users_id] => 6
30 1 remi
    [users_id_recipient] => 6
31 1 remi
    [groups_id] => 0
32 1 remi
    [users_id_assign] => 0
33 1 remi
    [suppliers_id_assign] => 0
34 1 remi
    [groups_id_assign] => 0
35 1 remi
    [itemtype] => 0
36 1 remi
    [items_id] => 0
37 1 remi
    [content] => I can't send a mail
38 1 remi
    [urgence] => 3
39 1 remi
    [impact] => 3
40 1 remi
    [priority] => 3
41 1 remi
    [user_email] => 
42 1 remi
    [use_email_notification] => 0
43 1 remi
    [realtime] => 16
44 1 remi
    [ticketscategories_id] => 1
45 1 remi
    [cost_time] => 0.0000
46 1 remi
    [cost_fixed] => 0.0000
47 1 remi
    [cost_material] => 0.0000
48 1 remi
    [followups] => Array
49 1 remi
        (
50 1 remi
            [0] => Array
51 1 remi
                (
52 1 remi
                    [id] => 31
53 1 remi
                    [date] => 2009-08-25 10:35:21
54 1 remi
                    [users_id] => 6
55 1 remi
                    [content] => a new message
56 1 remi
                )
57 1 remi
        )
58 1 remi
)
59 1 remi
</pre>