diff options
Diffstat (limited to 'lib/gitlab/jira_import/base_importer.rb')
-rw-r--r-- | lib/gitlab/jira_import/base_importer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/jira_import/base_importer.rb b/lib/gitlab/jira_import/base_importer.rb index 24158b8e734..afb443020b7 100644 --- a/lib/gitlab/jira_import/base_importer.rb +++ b/lib/gitlab/jira_import/base_importer.rb @@ -9,7 +9,7 @@ module Gitlab raise Projects::ImportService::Error, _('Jira import feature is disabled.') unless Feature.enabled?(:jira_issue_import, project) raise Projects::ImportService::Error, _('Jira integration not configured.') unless project.jira_service&.active? - @jira_project_key = project&.import_data&.becomes(JiraImportData)&.current_project&.key + @jira_project_key = project.latest_jira_import&.jira_project_key raise Projects::ImportService::Error, _('Unable to find Jira project to import data from.') unless @jira_project_key @project = project |