diff options
Diffstat (limited to 'lib/api/helpers/issues_helpers.rb')
-rw-r--r-- | lib/api/helpers/issues_helpers.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/helpers/issues_helpers.rb b/lib/api/helpers/issues_helpers.rb index 8addcd18fe3..e272b13f3ae 100644 --- a/lib/api/helpers/issues_helpers.rb +++ b/lib/api/helpers/issues_helpers.rb @@ -11,6 +11,9 @@ module API params :optional_issues_params_ee do end + params :optional_issue_not_params_ee do + end + def self.update_params_at_least_one_of [ :assignee_id, @@ -35,8 +38,11 @@ module API args = declared_params.merge(args) args.delete(:id) + args[:not] ||= {} args[:milestone_title] ||= args.delete(:milestone) + args[:not][:milestone_title] ||= args[:not]&.delete(:milestone) args[:label_name] ||= args.delete(:labels) + args[:not][:label_name] ||= args[:not]&.delete(:labels) args[:scope] = args[:scope].underscore if args[:scope] args[:sort] = "#{args[:order_by]}_#{args[:sort]}" |