[python-bugzilla] List of all attributes for getting a description of a bug

Cole Robinson crobinso at redhat.com
Sun Jan 11 14:22:23 UTC 2015


On 01/09/2015 04:55 PM, Ravikumar Patel wrote:
> Thanks for the response. It was really helpful. 
> 
> I have another question. Is it possible to query for all the bug IDs for a
> given Bugzilla account? So far I have the following as the code:
> 
> bz = bugzilla.Bugzilla(url='https://bugzilla.myname.com/xmlrpc.cgi')
> try:
>    bz.login('email at email.com <mailto:email at email.com>', 'batman'); 
>    print'Authorization cookie received.'
> except bugzilla.BugzillaError:
>    print(str(sys.exc_info()[1]))
>    sys.exit(1)
> 
> # list = bz.query_all_bug_ids ?
> 

Please keep the mailing list in CC

>From the command line you can do

./bugzilla query --assigned_to foo at example.com

Pass the --debug flag to look at what API calls are being generated. Basically
look at bz.query and bz.build_query

- Cole


More information about the python-bugzilla mailing list