Tracker V3 SOAP API

The Tracker v3 SOAP API has similarities with the tracker API but is nonethelss different enough to warrant its own documentation.

All the examples below a provided in PHP but you can use any language with a SOAP library.

This documentation goes hand-in-hand with the WSDL specifications

Update an artifact

Basic usage of API

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
 $host         = 'https://tuleap.example.com';
 $host_login   = $host .'/soap/index.php?wsdl';

 // SOAP options for debug
 $soap_option  = array(
     'cache_wsdl' => WSDL_CACHE_NONE,
     'exceptions' => 1,
     'trace'      => 1
 );

 $client = new SoapClient($host_login, $soap_option);
 $session_hash = $client->login('john_doe', 'secret')->session_hash;

 $group_id          = 147;
 $group_artifact_id = 10;
 $artifact_id       = 154;
 $status_id         = 1;
 $close_date        = 0;
 $summary           = 'summary';
 $details           = 'details';
 $severity          = 3;
 $extra_fields      = array(
     array(
         'field_id'      => 4,
         'artifact_id'   => 154,
         'field_value'   => '104'
         )
     );

 $response = $client->updateArtifact(
         $session_hash,
         $group_id,
         $group_artifact_id,
         $artifact_id,
         $status_id,
         $close_date,
         $summary,
         $details,
         $severity,
         $extra_fields
     );

 var_dump($response);

 // Cancel session
 $client->logout($session_hash);
?>