Skip to content

Commit c85276a

Browse files
author
Gauvain Pocentek
committed
issues: add optional listing parameters
1 parent 412e2bc commit c85276a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitlab/objects.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ class Issue(GitlabObject):
760760
canUpdate = False
761761
canCreate = False
762762
shortPrintAttr = 'title'
763+
optionalListAttrs = ['state', 'labels']
763764

764765

765766
class IssueManager(BaseManager):
@@ -1003,6 +1004,7 @@ class ProjectIssue(GitlabObject):
10031004
_url = '/projects/%(project_id)s/issues/'
10041005
_constructorTypes = {'author': 'User', 'assignee': 'User',
10051006
'milestone': 'ProjectMilestone'}
1007+
optionalListAttrs = ['state', 'labels', 'milestone', 'iid']
10061008
requiredUrlAttrs = ['project_id']
10071009
requiredCreateAttrs = ['title']
10081010
# FIXME: state_event is only valid with update

0 commit comments

Comments
 (0)