Bug 452399
Summary: | need bugzilla xmlrpc dependency chain call | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Community] Bugzilla | Reporter: | Matt Domsch <matt_domsch> | ||||||
Component: | Dependency Views | Assignee: | PnT DevOps Devs <hss-ied-bugs> | ||||||
Status: | CLOSED NOTABUG | QA Contact: | |||||||
Severity: | low | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | devel | CC: | dkl, wwoods | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2008-08-28 02:38:00 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Matt Domsch
2008-06-22 03:59:15 UTC
The showdependencytree.cgi script has a XML ctype that could be used for this. For example: https://bugzilla.redhat.com/showdependencytree.cgi?id=406071&hide_resolved=0&ctype=xml will display the full dependency tree in XML format. Simple change hide_resolved=0 to hide_resolved=1 if you want to hide the resolved bugs from the tree. Would this be sufficient? Dave yes, I can make that work, thanks. Created attachment 315226 [details]
deptree.py - example code for generating a deplist from a given bug ID
For the record, here's some example python code that uses expat to parse the XML output mentioned. I'm working on integrating it into python-bugzilla.
Created attachment 315229 [details]
merge-mock-list-to-bz-csv.py
Unfortunately, the XML returned with the dependency list doesn't include a <component> field for each bug, which I need. So I wind up doing it in two steps: 1) get the dependency list, then 2) get bug status for all the bugs on that list so I can get the component tag.
Attached is the hackjob I put together. Sorry for the use of curl+subprocess, but it's necessary behind my stupid proxy servers...
(In reply to comment #4) > Created an attachment (id=315229) [details] > merge-mock-list-to-bz-csv.py > > Unfortunately, the XML returned with the dependency list doesn't include a > <component> field for each bug, which I need. So I wind up doing it in two > steps: 1) get the dependency list, then 2) get bug status for all the bugs on > that list so I can get the component tag. > > Attached is the hackjob I put together. Sorry for the use of curl+subprocess, > but it's necessary behind my stupid proxy servers... File a Bugzilla RFE to add the component to the XML output (and may be useful for the cgi output as well) and I will put it in for the next update. We are sending an update out today but it is too late to get in today. We normally update each Thursday for non-critical fixes. Dave |