[python-bugzilla] How to get all bug IDs from bugzilla via python script
Cole Robinson
crobinso at redhat.com
Tue Jan 13 22:01:01 UTC 2015
Check the bugzilla API docs here:
http://www.bugzilla.org/docs/4.4/en/html/api/Bugzilla/WebService/Bug.html#get
dupe_of, estimate_time, actual_time, remaining_time should all be provided by
Bug.get/getbug
comments and attachments are handled by separate APIs, also documented on that
page.
I think you can get assigned/qa name strings via the Users API, you'll have to
poke at the docs.
- Cole
On 01/13/2015 04:32 PM, Ravikumar Patel wrote:
> I want to extract all information from a bug (comments, creator's name and
> email, QA's name and email, etc) and save it to a text file but I'm not able
> to. I can only access some of the data. I'm using Bugzilla version 4.2.5.
> Using /print dir(bz.getbug(8658))/, here is what I have access to the
> following (see attachment).
>
> So long story short, I cannot/don't have access to *description*,
> *dupe_of*, *assigned_to*/*qa_contact *(can only get email but not the name),
> *estimated_time*, *actual_time*, *remaining_time*, getting all *comments
> *(with date, text, author, attachments reference) and *attachments *(file,
> date, author, description).
>
> But some of these attributes are available as tags on the bug's XML page. So I
> thought maybe I could just parse the XML page and get all the info from there.
> Do you have any suggestions? Otherwise I'm stuck because I can't get all the
> info I need.
>
> Thanks,
> Ravi
>
>
>
> On Tue, Jan 13, 2015 at 4:04 PM, Cole Robinson <crobinso at redhat.com
> <mailto:crobinso at redhat.com>> wrote:
>
> Sorry I didn't consider the auth issue.
>
> Modern bugzilla doesn't use cookies via the xmlrpc API, instead it uses a
> token which is API access only. So authenticating via python-bugzilla is not
> going to give you any way of accessing a regular bugzilla URL with auth. So
> there's no easy way that I can think of.
>
> What are you trying to achieve exactly? Why do you need the bug XML output?
> All that information should be available via the python-bugzilla API, so maybe
> you can achieve what you need in a different way
>
> - Cole
>
More information about the python-bugzilla
mailing list