<div dir="ltr">I'm sorry if I'm bothering you with too many questions but I'm a real beginner with both python and the bugzilla-python package. The APIs you mentioned in the link above are the comments and attachment section? </div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 13, 2015 at 9:13 PM, Ravikumar Patel <span dir="ltr"><<a href="mailto:ravikumarpatel2610@gmail.com" target="_blank">ravikumarpatel2610@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Every time I use the following commands, I get an error saying dupe_of is not defined:<br><br>bug = bz.getbug(123456)<br>print bug.dupe_of<br>print bug.estimate_time<br>print bug.actual_time<br><br></div>Any suggestions as to why?<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 13, 2015 at 5:01 PM, Cole Robinson <span dir="ltr"><<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Check the bugzilla API docs here:<br>
<br>
<a href="http://www.bugzilla.org/docs/4.4/en/html/api/Bugzilla/WebService/Bug.html#get" target="_blank">http://www.bugzilla.org/docs/4.4/en/html/api/Bugzilla/WebService/Bug.html#get</a><br>
<br>
dupe_of, estimate_time, actual_time, remaining_time should all be provided by<br>
Bug.get/getbug<br>
<br>
comments and attachments are handled by separate APIs, also documented on that<br>
page.<br>
<br>
I think you can get assigned/qa name strings via the Users API, you'll have to<br>
poke at the docs.<br>
<br>
- Cole<br>
<span><br>
On 01/13/2015 04:32 PM, Ravikumar Patel wrote:<br>
> I want to extract all information from a bug (comments, creator's name and<br>
> email, QA's name and email, etc) and save it to a text file but I'm not able<br>
> to. I can only access some of the data. I'm using Bugzilla version 4.2.5.<br>
</span>> Using /print dir(bz.getbug(8658))/, here is what I have access to the<br>
> following (see attachment).<br>
><br>
> So long story short, I cannot/don't have access to *description*,<br>
> *dupe_of*, *assigned_to*/*qa_contact *(can only get email but not the name),<br>
> *estimated_time*, *actual_time*, *remaining_time*, getting all *comments<br>
> *(with date, text, author, attachments reference) and *attachments *(file,<br>
<span>> date, author, description).<br>
><br>
> But some of these attributes are available as tags on the bug's XML page. So I<br>
> thought maybe I could just parse the XML page and get all the info from there.<br>
> Do you have any suggestions? Otherwise I'm stuck because I can't get all the<br>
> info I need.<br>
><br>
> Thanks,<br>
> Ravi<br>
><br>
><br>
><br>
> On Tue, Jan 13, 2015 at 4:04 PM, Cole Robinson <<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a><br>
</span><div><div>> <mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>>> wrote:<br>
><br>
> Sorry I didn't consider the auth issue.<br>
><br>
> Modern bugzilla doesn't use cookies via the xmlrpc API, instead it uses a<br>
> token which is API access only. So authenticating via python-bugzilla is not<br>
> going to give you any way of accessing a regular bugzilla URL with auth. So<br>
> there's no easy way that I can think of.<br>
><br>
> What are you trying to achieve exactly? Why do you need the bug XML output?<br>
> All that information should be available via the python-bugzilla API, so maybe<br>
> you can achieve what you need in a different way<br>
><br>
> - Cole<br>
><br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>