Page 1 of 1

mantisconnect mc_issue_add issue data values

Posted: 07 Jun 2012, 22:07
by JR10
I can't figure out the value of the issue data array.

Here:

Code: Select all

	$issue_data = array(
		"project" => array("id" => "1"),
		"category" => "Feature",
		"reproducibility" => array("name" => "always"),
		"severity" => array("name" => "text"),
		"priority" => array("name" => "urgent"),
		"summary" => "test",
		"view_state" => array(name => "private")
	);
		
	$added_issue_id = mc_issue_add($username, $password, $issue_data);
This doesn't work because of the wrong value of the "view_state".

Fatal error: Call to a member function fault() on a non-object in /home/jr10/domains/skylinemta.com/public_html/supdawg/api/soap/mc_api.php on line 418

Which probably means that "view_state" is wrong. I tried commenting view_state and it worked.

When commenting view_state out it works, but the severity/reproducibility/priority is not what I typed and hoped for. They're different.

Re: mantisconnect mc_issue_add issue data values

Posted: 08 Jun 2012, 18:53
by atrol
A better place to get support for the SOAP API is to write to the "MantisBT SOAP API development talk" (mantisbt-soap-dev) mailing list.
http://www.mantisbt.org/mailinglists.php