python-gitlab : How to list all issues in a specific milestone

582 Views Asked by At

I need some help. how to list all issues in a specific milestone? this is my script

group = gl.groups.get(53)
for project in group.milestones.list(search='TestMilestone'):
    print(project)

group = gl.groups.get(53)
for issues in group.milestone.issues(search='TestMilestone'):
    print(issues)

1

There are 1 best solutions below

0
On

this seems to work:

group.issues.list(milestone='TestMilestone')

see https://python-gitlab.readthedocs.io/en/stable/gl_objects/issues.html#id2