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
returnunlessconfiguration_check
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]
raiseProjects::ImportService::Error,_('Unable to connect to the Jira instance. Please check your Jira integration configuration.')unlessjira_service&.valid_connection?