<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 7, 2013 at 4:58 PM, Daniel Dunbar <span dir="ltr"><<a href="mailto:daniel@zuster.org" target="_blank">daniel@zuster.org</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">I don't know the answer to this question, but I've attached an (old) version of pybugz that I tweaked a little to work with LLVM bugzilla. You can probably write such queries on top of this if you feel like figuring out its API:</div>
</blockquote><div><br></div><div><br></div><div>Thanks. Looks like most of the pages have some way to get them to spit out XML. Not quite as nice as a (well-documented) JSON REST API, but it's workable.</div><div><br>
</div><div>I guess the REST API is a newer feature and our bugzilla is just old?</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>
--</div><p style="margin:0px;font-size:11px;font-family:Menlo">$ ./bugz get -n 1000</p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> * Using <a href="http://llvm.org/bugs/" target="_blank">http://llvm.org/bugs/</a> </p>
<p style="margin:0px;font-size:11px;font-family:Menlo"> * Getting bug 1000 ..</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Title       : Chris Is Buggy</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Assignee    : tonic</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Reported    : 2006-11-10 18:40:00 -0600</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Updated     : 2011-05-24 11:55:13 -0500</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Status      : RESOLVED</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Resolution  : WONTFIX</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Severity    : normal</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Priority    : P</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Reporter    : rspencer</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Version     : trunk</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Platform    : All</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">OS          : All</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Product     : tools</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Component   : analyze</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Keywords    : regression</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">CC          : brukman+bugs</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">CC          : clattner</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">CC          : isanbard</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">CC          : llvmbugs</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">CC          : stuart</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">DependsOn   : 10000</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Comments    : 21</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">Attachments : 0</p>
<p style="margin:0px;font-size:11px;font-family:Menlo">URL         : <a href="http://llvm.org/bugs/show_bug.cgi?id=1000" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=1000</a></p><div>--</div><div><br><div> - Daniel<br>
</div></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Nov 6, 2013 at 10:59 PM, Sean Silva <span dir="ltr"><<a href="mailto:silvas@purdue.edu" target="_blank">silvas@purdue.edu</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Does anybody know if we have bugzilla's REST API enabled, and if so how to access it? <<a href="https://wiki.mozilla.org/Bugzilla:REST_API:Methods" target="_blank">https://wiki.mozilla.org/Bugzilla:REST_API:Methods</a>>. I tried e.g. <a href="http://llvm.org/bugs/bug/count" target="_blank">http://llvm.org/bugs/bug/count</a> but there doesn't seem to be anything there.<div>


<br></div><div>I'd like to write a script that tracks various statistics e.g. how many bugs were filed in the last week, how many were closed, etc. and a REST API seems like the simplest way to automate (most of the methods corresponds directly to things in the Web UI, e.g. searches)</div>

<span><font color="#888888">
<div><br></div><div>-- Sean Silva</div></font></span></div>
<br></div></div><div class="im">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br></div></div>