#!/usr/bin/env python3
# coding: utf-8
import pprint
from launchpadlib.launchpad import Launchpad
subprojects = [
'checkbox',
'checkbox-gui',
'checkbox-legacy',
'checkbox-ng',
'checkbox-support',
'checkbox-touch',
'oem-qa-checkbox',
'oem-qa-tools',
'plainbox',
'plainbox-provider-canonical-certification',
'plainbox-provider-checkbox',
'plainbox-provider-piglit',
'plainbox-provider-resource',
'plainbox-provider-ubuntu-touch',
]
launchpad = Launchpad.login_with(
"ce-qa-concern-tracker", "production")
for project in subprojects:
lb = launchpad.projects[project]
bugs = lb.searchTasks(tags='ce-qa-concern')
for entry in bugs.entries:
bug = launchpad.load(entry['self_link'])
if bug.milestone is not None:
print(bug, bug.milestone)