bug_task object doesn't have tags?

Asked by Mike Scherbakov

I use launchpad API to get a collection of bugs for further processing. I'm using searchTasks method, which returns a collection of bug_task objects.
I assumed that each bug_task object has bug tags list, but it is not the case. Looks like that I need to do a separate request for every tag like:

bug = launchpad.bugs[<bug_id>]
bug.tags

to get list of tags for every bug. Is there any way to obtain a bug search results with bugs objects, not "bug_task"? Or any other way how I can have list of tags for every bug in a search result?

Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
William Grant (wgrant) said :
#1

searchTasks always returns a collection of bug_tasks. To obtain the bug-wide attributes you need to separately get the bug object for each task, either using bug_task.bug or launchpad.bugs[bug_id}.

Revision history for this message
Mike Scherbakov (mihgen) said :
#2

William, thanks for the prompt response!
bug_task.bug solves my issue. Do you know if it does any additional call to launchpad?

Can you help with this problem?

Provide an answer of your own, or ask Mike Scherbakov for more information if necessary.

To post a message you must log in.