diff options
Diffstat (limited to 'app/services/issues/create_service.rb')
-rw-r--r-- | app/services/issues/create_service.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/issues/create_service.rb b/app/services/issues/create_service.rb index fa8d380404b..79b59eee5e1 100644 --- a/app/services/issues/create_service.rb +++ b/app/services/issues/create_service.rb @@ -41,7 +41,7 @@ module Issues user = current_user issue.run_after_commit do NewIssueWorker.perform_async(issue.id, user.id) - IssuePlacementWorker.perform_async(nil, issue.project_id) + Issues::PlacementWorker.perform_async(nil, issue.project_id) Namespaces::OnboardingIssueCreatedWorker.perform_async(issue.namespace.id) end end @@ -50,6 +50,7 @@ module Issues def after_create(issue) user_agent_detail_service.create resolve_discussions_with_issue(issue) + create_escalation_status(issue) super end @@ -80,6 +81,10 @@ module Issues attr_reader :spam_params + def create_escalation_status(issue) + ::IncidentManagement::IssuableEscalationStatuses::CreateService.new(issue).execute if issue.supports_escalation? + end + def user_agent_detail_service UserAgentDetailService.new(spammable: @issue, spam_params: spam_params) end |