summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitlab/objects.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 83569a0..fe69fff 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -760,7 +760,7 @@ class Issue(GitlabObject):
canUpdate = False
canCreate = False
shortPrintAttr = 'title'
- optionalListAttrs = ['state', 'labels']
+ optionalListAttrs = ['state', 'labels', 'order_by', 'sort']
class IssueManager(BaseManager):
@@ -1034,7 +1034,8 @@ class ProjectIssue(GitlabObject):
_url = '/projects/%(project_id)s/issues/'
_constructorTypes = {'author': 'User', 'assignee': 'User',
'milestone': 'ProjectMilestone'}
- optionalListAttrs = ['state', 'labels', 'milestone', 'iid']
+ optionalListAttrs = ['state', 'labels', 'milestone', 'iid', 'order_by',
+ 'sort']
requiredUrlAttrs = ['project_id']
requiredCreateAttrs = ['title']
# FIXME: state_event is only valid with update