Class: Issues::CloneService

Inherits:
Issuable::Clone::BaseService show all
Defined in:
app/services/issues/clone_service.rb

Constant Summary collapse

CloneError =
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 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, with_notes: false) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/services/issues/clone_service.rb', line 7

def execute(issue, target_project, with_notes: false)
  @target_project = target_project
  @with_notes = with_notes

  verify_can_clone_issue!(issue, target_project)

  super(issue, target_project)

  notify_participants

  queue_copy_designs

  new_entity
end