|
From: Robert M. <rob...@gm...> - 2012-06-12 07:50:45
|
Hi Jacob, On Fri, Jun 8, 2012 at 10:09 PM, Jacob Ryan <jr1...@gm...> wrote: > I know the title is a bit unclear, but here is my problem: > > I can't figure out the value of the issue data array which is an argument of > the function mc_issue_add. Can you try using ids for the values? We have some working examples at https://github.com/mantisbt/mantisbt/blob/master-1.2.x/tests/soap/IssueAddTest.php Robert > > > $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. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Mantisbt-soap-dev mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-soap-dev > -- Sent from my (old) computer |