Class: Issues::MoveService

Inherits:
Issuable::Clone::BaseService show all
Extended by:
Gitlab::Utils::Override
Defined in:
app/services/issues/move_service.rb

Constant Summary collapse

MoveError =
Class.new(StandardError)

Instance Attribute Summary

Attributes inherited from Issuable::Clone::BaseService

#new_entity, #original_entity

Attributes inherited from BaseContainerService

#container, #current_user, #group, #params, #project

Instance Method Summary collapse

Methods included from Gitlab::Utils::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

Methods inherited from BaseContainerService

#group_container?, #initialize, #namespace_container?, #project_container?, #project_group

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Instance Method Details

#execute(issue, target_project) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'app/services/issues/move_service.rb', line 9

def execute(issue, target_project)
  @target_project = target_project

  verify_can_move_issue!(issue, target_project)

  super

  notify_participants

  # Updates old issue sent notifications allowing
  # to receive service desk emails on the new moved issue.
  update_service_desk_sent_notifications

  copy_email_participants
  queue_copy_designs

  new_entity
end