How to get the full list of bugs with searchTasks?

Asked by Timur Nurlygayanov

from launchpadlib.launchpad import Launchpad
launchpad = Launchpad.login_with('murano', 'production')
project = launchpad.projects['murano']

launchpad_bugs = project.searchTasks(status=["New", "Fix Committed",
                                                 "Invalid", "Won't Fix",
                                                 "Confirmed", "Triaged",
                                                 "In Progress", "Incomplete",
                                                 "Fix Released"]).entries

Why this code returns only 75 bugs? (when the real count of nugs 200+)

Is it possible to change this behaviour?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu python-launchpadlib Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Krüger
Solved:
Last query:
Last reply:
Revision history for this message
Best Thomas Krüger (thkrueger) said :
#1

You have been using it wrongly. Your way you'll only receive the first batch of 75, as shown on the website.
Try this:

launchpad_bugs = project.searchTasks(status=["New", "Fix Committed",
                                                 "Invalid", "Won't Fix",
                                                 "Confirmed", "Triaged",
                                                 "In Progress", "Incomplete",
                                                 "Fix Released"])
for bug in launchpad_bugs:
    print bug.title, bug.status

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) said :
#2

Thanks Thomas Krüger, that solved my question.

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) said :
#3

Yes, this is solved this problem, but started work very slowly ) (200+ instead 75 ))) )

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) said :
#4

Probaly, we can add this example to https://help.launchpad.net/API/launchpadlib