Hide Forgot
The new Dependent Products extension doesn't behave well with the current RPC. When you fetch a bug using Bug.get you should be able to get the list of dependent products that is set against that bug. When you update a bug using Bug.update, you should be able to set a list of dependent products, either by name or product ID.
Added dependent_product fields to Bug.get and Bug.update calls. See the Bug.get and Bug.update docs for information on how to use these fields.
@Matt, where could I find the related xmlrpc doc about this feature? And I can't find the doc about dependent_products in below link: https://bz-web.host.qe.eng.pek2.redhat.com/docs/en/html/api/core/v1/bug.html
I wrote the docs for the old API. I'll need to also modify the docs for the new REST API.
Try to update product's dependent_products, get error: =================Executed XML-RPC================= xmlrpc.DependentProducts.update({'products': [{'dm_contacts': {'set': ['qgong']}, 'depends_on': {'add': ['Red Hat Database', 'Errata Tool']}, 'pm_contacts': {'set': ['qgong']}, 'name': 'OpenShift Online', 'qe_contacts': {'set': ['qgong']}}], 'Bugzilla_login': 'admin1', 'Bugzilla_password': '*****'}) =============XMLRPC Execution Results============= {'fault_code': -32000, 'fault_string': 'Can\'t call method "qe_contacts_as_email" on an undefined value at /loader/0x7f924c92b760/Bugzilla/Extension/DependentProducts/WebService/DependentProducts.pm line 76.\n'}
Tested on QA environment(5.0.3-rh12) Result: Pass