<div dir="ltr">I&#39;m sorry if I&#39;m bothering you with too many questions but I&#39;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">&lt;<a href="mailto:ravikumarpatel2610@gmail.com" target="_blank">ravikumarpatel2610@gmail.com</a>&gt;</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">&lt;<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>&gt;</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&#39;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>
&gt; I want to extract all information from a bug (comments, creator&#39;s name and<br>
&gt; email, QA&#39;s name and email, etc) and save it to a text file but I&#39;m not able<br>
&gt; to. I can only access some of the data. I&#39;m using Bugzilla version 4.2.5.<br>
</span>&gt; Using /print dir(bz.getbug(8658))/, here is what I have access to the<br>
&gt; following (see attachment).<br>
&gt;<br>
&gt; So long story short, I cannot/don&#39;t have access to *description*,<br>
&gt; *dupe_of*, *assigned_to*/*qa_contact *(can only get email but not the name),<br>
&gt; *estimated_time*, *actual_time*, *remaining_time*, getting all *comments<br>
&gt; *(with date, text, author, attachments reference) and *attachments *(file,<br>
<span>&gt; date, author, description).<br>
&gt;<br>
&gt; But some of these attributes are available as tags on the bug&#39;s XML page. So I<br>
&gt; thought maybe I could just parse the XML page and get all the info from there.<br>
&gt; Do you have any suggestions? Otherwise I&#39;m stuck because I can&#39;t get all the<br>
&gt; info I need.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Ravi<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jan 13, 2015 at 4:04 PM, Cole Robinson &lt;<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a><br>
</span><div><div>&gt; &lt;mailto:<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Sorry I didn&#39;t consider the auth issue.<br>
&gt;<br>
&gt;     Modern bugzilla doesn&#39;t use cookies via the xmlrpc API, instead it uses a<br>
&gt;     token which is API access only. So authenticating via python-bugzilla is not<br>
&gt;     going to give you any way of accessing a regular bugzilla URL with auth. So<br>
&gt;     there&#39;s no easy way that I can think of.<br>
&gt;<br>
&gt;     What are you trying to achieve exactly? Why do you need the bug XML output?<br>
&gt;     All that information should be available via the python-bugzilla API, so maybe<br>
&gt;     you can achieve what you need in a different way<br>
&gt;<br>
&gt;     - Cole<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>