diff --git a/src/WorkItemMigrator/JiraExport/JiraMapper.cs b/src/WorkItemMigrator/JiraExport/JiraMapper.cs index 3c183a41..4eecbe8f 100644 --- a/src/WorkItemMigrator/JiraExport/JiraMapper.cs +++ b/src/WorkItemMigrator/JiraExport/JiraMapper.cs @@ -301,6 +301,9 @@ private Dictionary> InitializeFieldMappings() case "MapTags": value = IfChanged(item.Source, isCustomField, MapTags); break; + case "MapArray": + value = IfChanged(item.Source, isCustomField, MapArray); + break; case "MapRemainingWork": value = IfChanged(item.Source, isCustomField, MapRemainingWork); break; @@ -467,6 +470,18 @@ private object MapTags(string labels) return string.Join(";", tags); } + private object MapArray(string field) + { + if (string.IsNullOrWhiteSpace(field)) + return null; + + var values = field.Split(','); + if (!values.Any()) + return null; + else + return string.Join(";", values); + } + private object MapSprint(string iterationPathsString) { if (string.IsNullOrWhiteSpace(iterationPathsString))