summaryrefslogtreecommitdiff
path: root/app/services/issues/after_create_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/issues/after_create_service.rb')
-rw-r--r--app/services/issues/after_create_service.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/services/issues/after_create_service.rb b/app/services/issues/after_create_service.rb
new file mode 100644
index 00000000000..0c6ec65f0e2
--- /dev/null
+++ b/app/services/issues/after_create_service.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+module Issues
+ class AfterCreateService < Issues::BaseService
+ def execute(issue)
+ todo_service.new_issue(issue, current_user)
+ delete_milestone_total_issue_counter_cache(issue.milestone)
+ track_incident_action(current_user, issue, :incident_created)
+ end
+ end
+end
+
+Issues::AfterCreateService.prepend_ee_mod