Want to get bug id from bug_link

Asked by Lewis Muhlenkamp

How do I get the bug id from bug_link? In the collection from running searchTasks, each item in the collection has a bug_link attribute. That attribute points to a bug. The bug object has the id. How do I use the bug_link to get the bug id?

Here is the snippet of code I've been struggling with:

bug_tasks = series.searchTasks(status=['New'],importance=['Critical'])
for bug in bug_tasks:
    print(bug)
    bug_link=bug.bug_link
    print(bug_link.id)

Any help would be appreciated.

Thank you

Question information

Language:
English Edit question
Status:
Expired
For:
Auditor Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.