diff options
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 9d055cbd6c6..5aec64da4cf 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -857,6 +857,12 @@ class Project < ApplicationRecord import_state&.status || 'none' end + def jira_import_status + return import_status if jira_force_import? + + import_data&.becomes(JiraImportData)&.projects.blank? ? 'none' : 'finished' + end + def human_import_status_name import_state&.human_status_name || 'none' end |