Hello,
I am trying to get the bug ID of all bugs from my Bugzilla account. Any suggestions as to how I am able to do so? Is it possible that to query for all projects and then access the bug IDs from each project? If so, then how?
So far my code looks like this:
bz = bugzilla.Bugzilla(url='https://bugzilla.mycompany.com/xmlrpc.cgi%27)try: bz.login('name@email.com', 'password'); print'Authorization cookie received.'except bugzilla.BugzillaError: print(str(sys.exc_info()[1])) sys.exit(1)
Here is the link to the stackoverflow question page: http://stackoverflow.com/questions/27869663/how-do-i-query-bugzilla-to-get-a...
I really need help on this. Any suggestions?
On 01/13/2015 12:59 PM, Ravikumar Patel wrote:
Hello,
I am trying to get the bug ID of all bugs from my Bugzilla account. Any suggestions as to how I am able to do so? Is it possible that to query for all projects and then access the bug IDs from each project? If so, then how?
So far my code looks like this:
|bz = bugzilla.Bugzilla(url='https://bugzilla.mycompany.com/xmlrpc.cgi') try: bz.login('name@email.com mailto:name@email.com', 'password'); print'Authorization cookie received.' except bugzilla.BugzillaError: print(str(sys.exc_info()[1])) sys.exit(1)|
Here is the link to the stackoverflow question page: http://stackoverflow.com/questions/27869663/how-do-i-query-bugzilla-to-get-a...
I really need help on this. Any suggestions?
bugs = bz.query(bz.build_query(assigned_to="your-bugzilla-account")) for bug in bugs: print bug.id
- Cole
This is a follow up question. How do I now access each bug's XML page now that I have the bug IDs I needed?
On Tue, Jan 13, 2015 at 1:34 PM, Cole Robinson crobinso@redhat.com wrote:
On 01/13/2015 12:59 PM, Ravikumar Patel wrote:
Hello,
I am trying to get the bug ID of all bugs from my Bugzilla account. Any suggestions as to how I am able to do so? Is it possible that to query
for all
projects and then access the bug IDs from each project? If so, then how?
So far my code looks like this:
|bz = bugzilla.Bugzilla(url='https://bugzilla.mycompany.com/xmlrpc.cgi') try: bz.login('name@email.com mailto:name@email.com', 'password'); print'Authorization cookie received.' except bugzilla.BugzillaError: print(str(sys.exc_info()[1])) sys.exit(1)|
Here is the link to the stackoverflow question page:
http://stackoverflow.com/questions/27869663/how-do-i-query-bugzilla-to-get-a...
I really need help on this. Any suggestions?
bugs = bz.query(bz.build_query(assigned_to="your-bugzilla-account")) for bug in bugs: print bug.id
- Cole
I don't know what you mean by 'xml page'
- Cole
On 01/13/2015 02:23 PM, Ravikumar Patel wrote:
This is a follow up question. How do I now access each bug's XML page now that I have the bug IDs I needed?
On Tue, Jan 13, 2015 at 1:34 PM, Cole Robinson <crobinso@redhat.com mailto:crobinso@redhat.com> wrote:
On 01/13/2015 12:59 PM, Ravikumar Patel wrote: > Hello, > > I am trying to get the bug ID of all bugs from my Bugzilla account. Any > suggestions as to how I am able to do so? Is it possible that to query for all > projects and then access the bug IDs from each project? If so, then how? > > So far my code looks like this: > > |bz = bugzilla.Bugzilla(url='https://bugzilla.mycompany.com/xmlrpc.cgi') > try: > bz.login('name@email.com <mailto:name@email.com> <mailto:name@email.com <mailto:name@email.com>>', 'password'); > print'Authorization cookie received.' > except bugzilla.BugzillaError: > print(str(sys.exc_info()[1])) > sys.exit(1)| > > Here is the link to the stackoverflow question page: > http://stackoverflow.com/questions/27869663/how-do-i-query-bugzilla-to-get-all-the-bug-ids-using-python-and-xml-rpc > > I really need help on this. Any suggestions? bugs = bz.query(bz.build_query(assigned_to="your-bugzilla-account")) for bug in bugs: print bug.id <http://bug.id> - Cole
Is that possible?
On Tue, Jan 13, 2015 at 2:23 PM, Ravikumar Patel < ravikumarpatel2610@gmail.com> wrote:
This is a follow up question. How do I now access each bug's XML page now that I have the bug IDs I needed?
On Tue, Jan 13, 2015 at 1:34 PM, Cole Robinson crobinso@redhat.com wrote:
On 01/13/2015 12:59 PM, Ravikumar Patel wrote:
Hello,
I am trying to get the bug ID of all bugs from my Bugzilla account. Any suggestions as to how I am able to do so? Is it possible that to query
for all
projects and then access the bug IDs from each project? If so, then how?
So far my code looks like this:
|bz = bugzilla.Bugzilla(url='https://bugzilla.mycompany.com/xmlrpc.cgi
')
try: bz.login('name@email.com mailto:name@email.com', 'password'); print'Authorization cookie received.' except bugzilla.BugzillaError: print(str(sys.exc_info()[1])) sys.exit(1)|
Here is the link to the stackoverflow question page:
http://stackoverflow.com/questions/27869663/how-do-i-query-bugzilla-to-get-a...
I really need help on this. Any suggestions?
bugs = bz.query(bz.build_query(assigned_to="your-bugzilla-account")) for bug in bugs: print bug.id
- Cole
python-bugzilla@lists.stg.fedorahosted.org