Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MOlausson committed Apr 28, 2019
2 parents a437837 + fe340c4 commit aa06b90
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/WorkItemMigrator/JiraExport/JiraMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ private Dictionary<string, FieldMapping<JiraRevision>> InitializeFieldMappings()
case "MapTags":
value = IfChanged<string>(item.Source, isCustomField, MapTags);
break;
case "MapArray":
value = IfChanged<string>(item.Source, isCustomField, MapArray);
break;
case "MapRemainingWork":
value = IfChanged<string>(item.Source, isCustomField, MapRemainingWork);
break;
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit aa06b90

Please sign in to comment.