From c85276a6e6c5088ea6f2ecb13059488c9779ea2c Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 19 Jun 2016 19:37:30 +0200 Subject: issues: add optional listing parameters --- gitlab/objects.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gitlab/objects.py') diff --git a/gitlab/objects.py b/gitlab/objects.py index 7bba1c9..41b8295 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -760,6 +760,7 @@ class Issue(GitlabObject): canUpdate = False canCreate = False shortPrintAttr = 'title' + optionalListAttrs = ['state', 'labels'] class IssueManager(BaseManager): @@ -1003,6 +1004,7 @@ class ProjectIssue(GitlabObject): _url = '/projects/%(project_id)s/issues/' _constructorTypes = {'author': 'User', 'assignee': 'User', 'milestone': 'ProjectMilestone'} + optionalListAttrs = ['state', 'labels', 'milestone', 'iid'] requiredUrlAttrs = ['project_id'] requiredCreateAttrs = ['title'] # FIXME: state_event is only valid with update -- cgit v1.2.1