Skip to content

Commit

Permalink
Add swimlanes to import process
Browse files Browse the repository at this point in the history
  • Loading branch information
yamila-moreno authored and bameda committed Oct 26, 2020
1 parent c7635dc commit 1921abe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions taiga/export_import/api.py
Expand Up @@ -183,6 +183,10 @@ def create(self, request, *args, **kwargs):
services.store.store_project_attributes_values(project_serialized.object, data,
"severities",
validators.SeverityExportValidator)
if "swimlanes" in data:
services.store.store_project_attributes_values(project_serialized.object, data,
"swimlanes",
validators.SwimlaneExportValidator)

if ("points" in data or "issues_types" in data or
"issues_statuses" in data or "us_statuses" in data or
Expand Down
1 change: 1 addition & 0 deletions taiga/export_import/validators/validators.py
Expand Up @@ -339,6 +339,7 @@ class UserStoryExportValidator(WatcheableObjectModelValidatorMixin):
assigned_to = UserRelatedField(required=False)
assigned_users = UserRelatedField(many=True, required=False)
status = ProjectRelatedField(slug_field="name")
swimlane = ProjectRelatedField(slug_field="name", required=False)
milestone = ProjectRelatedField(slug_field="name", required=False)
modified_date = serializers.DateTimeField(required=False)
generated_from_issue = ProjectRelatedField(slug_field="ref", required=False)
Expand Down

0 comments on commit 1921abe

Please sign in to comment.