parameters: (issue, field, value, old_value, new_text, user_id, action_flag, action_type)
docstring: action_type: 1 issue相关，2 comment
              action_flag: 1 新增，2 更新，3 删除
docstring_summary: action_type: 1 issue相关，2 comment
              action_flag: 1 新增，2 更新，3 删除
docstring_tokens: action_type : 1 issue相关，2 comment action_flag : 1 新增，2 更新，3 删除
function: def create_issue_activity(issue, field, value, old_value, new_text, user_id, action_flag, action_type):
          '''
              action_type: 1 issue相关，2 comment
              action_flag: 1 新增，2 更新，3 删除
          '''
          activity = IssueActivity()
          activity.Creator = user_id
          if field == None:
              activity.FieldDesc = ""
  
          elif str(field) != "0":
              activity.FieldDesc = issue.get_field_verbose_name(field)
          else:
              activity.FieldDesc = "备注"
          activity.FieldName = field
          activity.OldValue = str(old_value).strip()
          activity.NewValue = str(value).strip()
          activity.Message = new_text.strip()
          activity.Issue = issue.id
          activity.ActionFlag = action_flag
          activity.ActionType = action_type
          activity.save()
function_tokens: def create_issue_activity ( issue , field , value , old_value , new_text , user_id , action_flag , action_type ) : activity = IssueActivity ( ) activity . Creator = user_id if field == None : activity . FieldDesc = "" elif str ( field ) != "0" : activity . FieldDesc = issue . get_field_verbose_name ( field ) else : activity . FieldDesc = "备注" activity . FieldName = field activity . OldValue = str ( old_value ) . strip ( ) activity . NewValue = str ( value ) . strip ( ) activity . Message = new_text . strip ( ) activity . Issue = issue . id activity . ActionFlag = action_flag activity . ActionType = action_type activity . save ( )