summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-06-19 19:37:30 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-06-19 19:37:30 +0200
commitc85276a6e6c5088ea6f2ecb13059488c9779ea2c (patch)
treedcdf54e2668a6cf5091f66473eaef46d10ce3d46 /gitlab/objects.py
parent412e2bc7e00a5229974388f795caefa1f0896273 (diff)
downloadgitlab-c85276a6e6c5088ea6f2ecb13059488c9779ea2c.tar.gz
issues: add optional listing parameters
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py2
1 files changed, 2 insertions, 0 deletions
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