|
From: JR10 <jr...@jr...> - 2012-10-12 21:11:43
|
$username = "username";
$password = "password";
$category = "Feature";
$reproducibility = "N/A";
$severity = "feature";
$priority = "normal";
$summary = "Test";
$description = "test";
$reproducesteps = "test";
$issue_data = array(
"project" => array("id" => "1"),
"category" => $category,
"reproducibility" => array("name" => $reproducibility),
"severity" => array("name" => $severity),
"priority" => array("name" => $priority),
"summary" => $summary,
"description" => $description,
"steps_to_reproduce" => $reproducesteps
);
I'm using the above php code to add an issue. It works but the data is
wrong.
If $category is "Feature", the data is correct, and the issue is added
with the correct data.
if $category is "Bug", the data is incorrect, and the issue is added
with wrong data.
For example, severity should be "feature", but it's "trivial". priority
should be "normal", but it's "low".
Thanks.
|