if ($argc < 2) { die("Usage: " . $argv[0] . " report_id" . PHP_EOL); } $report_id = $argv[1]; $offset = 0; $limit = 10; $soap_options = array('cache_wsdl' => WSDL_CACHE_NONE, 'exceptions' => 1, 'trace' => 1); $host_login = $host . '/soap/?wsdl'; $host_tracker = $host . '/plugins/tracker/soap/?wsdl'; // Establish connection to the server $client_login = new SoapClient($host_login, $soap_options); $session_hash = $client_login->login($login, $password)->session_hash; try { // Connecting to the soap's tracker api $client_tracker = new SoapClient($host_tracker, $soap_options); $response = $client_tracker->getArtifactsFromReport($session_hash, $report_id, $offset, $limit); var_dump($response); echo "total_artifacts_number: " . $response->total_artifacts_number . "\n"; foreach ($response->artifacts as $artifact) { $message = "#" . $artifact->artifact_id; foreach ($artifact->value as $value) { if ((string) $value->field_name == "description") { $message .= " " . (string) $value->field_value; } if ((string) $value->field_name == "remaining_effort" && (string) $value->field_value) { $message .= " (" . (string) $value->field_label . ": " . (string) $value->field_value . ")"; } } echo $message . "\n"; } } catch (Exception $e) {