Skip to content

Commit 4dcbdbb

Browse files
authored
Adding check for mapping type object. Fixes #72 (#99)
1 parent ebb3c81 commit 4dcbdbb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/WorkItemMigrator/JiraExport/JiraItem.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ private static Dictionary<string, object> ExtractFields(string key, JObject remo
349349
if ((string)value == ";")
350350
value = string.Join(";", prop.Value.Select(st => st.ExValue<string>("$.value")).ToList());
351351
}
352+
else if (type == Newtonsoft.Json.Linq.JTokenType.Object)
353+
{
354+
if (prop.Value["value"] != null)
355+
{
356+
value = prop.Value["value"].ToString();
357+
}
358+
}
352359

353360
if (value != null)
354361
{

0 commit comments

Comments
 (0)