mantisconnect mc_issue_add issue data values

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

mantisconnect mc_issue_add issue data values

Post 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.
atrol
Site Admin
Posts: 8559
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: mantisconnect mc_issue_add issue data values

Post 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
Please use Search before posting and read the Manual
Post Reply