From b8cb65fd97c27e1ac7f4ff174e112d80479231b3 Mon Sep 17 00:00:00 2001 From: Christian Albrecht Date: Wed, 13 Sep 2023 09:42:31 +0200 Subject: [PATCH] fixup! importers/jira: project might have no labels field --- taiga/importers/jira/normal.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/taiga/importers/jira/normal.py b/taiga/importers/jira/normal.py index 933d2c9f..ab1cd924 100644 --- a/taiga/importers/jira/normal.py +++ b/taiga/importers/jira/normal.py @@ -207,7 +207,7 @@ def _import_user_stories_data(self, project_id, project, options): backlog_order=counter, subject=issue['fields']['summary'], description=issue['fields']['description'] or '', - tags=issue['fields']['labels'] or [], + tags=issue['fields'].get('labels', []), external_reference=external_reference, ) @@ -278,7 +278,7 @@ def _import_subtasks(self, project_id, project, us, issue, options): status=project.task_statuses.get(name=issue['fields']['status']['name']), subject=issue['fields']['summary'], description=issue['fields']['description'] or '', - tags=issue['fields']['labels'] or [], + tags=issue['fields'].get('labels', []), external_reference=external_reference, ) @@ -332,7 +332,7 @@ def _import_issues_data(self, project_id, project, options): status=project.issue_statuses.get(name=issue['fields']['status']['name']), subject=issue['fields']['summary'], description=issue['fields']['description'] or '', - tags=issue['fields']['labels'] or [], + tags=issue['fields'].get('labels', []), external_reference=external_reference, ) @@ -388,7 +388,7 @@ def _import_epics_data(self, project_id, project, options): subject=issue['fields']['summary'], description=issue['fields']['description'] or '', epics_order=counter, - tags=issue['fields']['labels'] or [], + tags=issue['fields'].get('labels', []), external_reference=external_reference, )