Description of problem: When creating new bug over XMLRPC API, dependency is not set properly. I'm using following python code: rpc.bugzilla.getBug(bug_id, bz_user, bz_password) ... newBug["dependson"] = bug["bug_id"] ... newBz, status = rpc.bugzilla.createBug(newBug, bz_user, bz_password) Version-Release number of selected component (if applicable): Bugzilla 3.2 How reproducible: Always Steps to Reproduce: 1. use the code in example above Actual results: newly created bug does not depend on specified bug Expected results: dependency Additional info:
Hi Jiri, I am not quite familiar but using my perl scripts to create bugs over xmlrpc seems to be working fine for me with the dependencies side of things, basically all you need to do is to pass the bug ids that you want as blocked or dependson as Comma or space separate list of bug id's not as a list/array , so for example in perl i do this: my $VAR1 = { 'priority' => 'low', 'assigned_to' => 'admin', 'version' => 'unspecified', 'bug_file_loc' => 'http://', 'cc' => 'admin', 'rep_platform' => 'All', 'comment' => 'This is a testing bug please ignore', 'component' => 'TestComponent', 'short_desc' => 'This is a testing bug please ignore', 'product' => 'TestProduct', 'bug_severity' => 'low', 'op_sys' => 'Linux', 'dependson' => "1,4", 'blocked' => "2,6", }; $result = $rpc->call('bugzilla.createBug', $VAR1, $username, $password); and the above works perfect for me. I hops using string of comma separated bug ids solves your problem in python let me know if it didn't work. Cheers, Noura
Actually I forgot to comment this ticket that it started working correctly again ~2 weeks ago. Thanks for your comment anyway. Cheers, Jiri