@@ -870,10 +870,12 @@ class Project < ApplicationRecord
...
@@ -870,10 +870,12 @@ class Project < ApplicationRecord
raiseProjects::ImportService::Error,_('Jira import feature is disabled.')unlessjira_issues_import_feature_flag_enabled?
raiseProjects::ImportService::Error,_('Jira import feature is disabled.')unlessjira_issues_import_feature_flag_enabled?
raiseProjects::ImportService::Error,_('Jira integration not configured.')unlessjira_service&.active?
raiseProjects::ImportService::Error,_('Jira integration not configured.')unlessjira_service&.active?
returnunlessuser
ifuser
raiseProjects::ImportService::Error,_('Cannot import because issues are not available in this project.')unlessfeature_available?(:issues,user)
raiseProjects::ImportService::Error,_('You do not have permissions to run the import.')unlessuser.can?(:admin_project,self)
end
raiseProjects::ImportService::Error,_('Cannot import because issues are not available in this project.')unlessfeature_available?(:issues,user)
raiseProjects::ImportService::Error,_('Unable to connect to the Jira instance. Please check your Jira integration configuration.')unlessjira_service.test(nil)[:success]
raiseProjects::ImportService::Error,_('You do not have permissions to run the import.')unlessuser.can?(:admin_project,self)