@@ -1038,9 +1038,11 @@ class ProjectIssue(GitlabObject):
1038
1038
'sort' ]
1039
1039
requiredUrlAttrs = ['project_id' ]
1040
1040
requiredCreateAttrs = ['title' ]
1041
- # FIXME: state_event is only valid with update
1042
1041
optionalCreateAttrs = ['description' , 'assignee_id' , 'milestone_id' ,
1043
- 'labels' , 'state_event' ]
1042
+ 'labels' , 'created_at' ]
1043
+ optionalUpdateAttrs = ['title' , 'description' , 'assignee_id' ,
1044
+ 'milestone_id' , 'labels' , 'created_at' ,
1045
+ 'state_event' ]
1044
1046
shortPrintAttr = 'title'
1045
1047
managers = [('notes' , ProjectIssueNoteManager ,
1046
1048
[('project_id' , 'project_id' ), ('issue_id' , 'id' )])]
@@ -1054,7 +1056,8 @@ def _data_for_gitlab(self, extra_parameters={}, update=False):
1054
1056
labels = ", " .join (self .labels )
1055
1057
extra_parameters ['labels' ] = labels
1056
1058
1057
- return super (ProjectIssue , self )._data_for_gitlab (extra_parameters )
1059
+ return super (ProjectIssue , self )._data_for_gitlab (extra_parameters ,
1060
+ update )
1058
1061
1059
1062
def Note (self , id = None , ** kwargs ):
1060
1063
warnings .warn ("`Note` is deprecated, use `notes` instead" ,
0 commit comments