@@ -1038,9 +1038,11 @@ class ProjectIssue(GitlabObject):
10381038 'sort' ]
10391039 requiredUrlAttrs = ['project_id' ]
10401040 requiredCreateAttrs = ['title' ]
1041- # FIXME: state_event is only valid with update
10421041 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' ]
10441046 shortPrintAttr = 'title'
10451047 managers = [('notes' , ProjectIssueNoteManager ,
10461048 [('project_id' , 'project_id' ), ('issue_id' , 'id' )])]
@@ -1054,7 +1056,8 @@ def _data_for_gitlab(self, extra_parameters={}, update=False):
10541056 labels = ", " .join (self .labels )
10551057 extra_parameters ['labels' ] = labels
10561058
1057- return super (ProjectIssue , self )._data_for_gitlab (extra_parameters )
1059+ return super (ProjectIssue , self )._data_for_gitlab (extra_parameters ,
1060+ update )
10581061
10591062 def Note (self , id = None , ** kwargs ):
10601063 warnings .warn ("`Note` is deprecated, use `notes` instead" ,
0 commit comments