@@ -902,17 +902,6 @@ class Project < ApplicationRecord
latest_jira_import&.status||'initial'
end
defvalidate_jira_import_settings!(user: nil)
raiseProjects::ImportService::Error,_('Jira integration not configured.')unlessjira_service&.active?
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,_('Unable to connect to the Jira instance. Please check your Jira integration configuration.')unlessjira_service.test(nil)[:success]
raiseProjects::ImportService::Error,_('Cannot import because issues are not available in this project.')unlessproject.feature_available?(:issues,user)
raiseProjects::ImportService::Error,_('You do not have permissions to run the import.')unlessuser.can?(:admin_project,project)
end
jira_service=project.jira_service
raiseProjects::ImportService::Error,_('Jira integration not configured.')unlessjira_service&.active?
raiseProjects::ImportService::Error,_('Unable to connect to the Jira instance. Please check your Jira integration configuration.')unlessjira_service.test(nil)[:success]