diff --git a/src/WorkItemMigrator/JiraExport/JiraItem.cs b/src/WorkItemMigrator/JiraExport/JiraItem.cs index a64b3056..15e48ab0 100644 --- a/src/WorkItemMigrator/JiraExport/JiraItem.cs +++ b/src/WorkItemMigrator/JiraExport/JiraItem.cs @@ -485,13 +485,20 @@ private static Dictionary ExtractFields(string key, JObject remo { value = prop.Value.Value(); } - // User picker + // User picker, cloud else if (type == JTokenType.Object && prop.Value["accountId"] != null && prop.Value["emailAddress"] != null && prop.Value["avatarUrls"] != null && prop.Value["displayName"] != null) { value = prop.Value["accountId"].ToString(); } + // User picker, on-prem + else if (type == JTokenType.Object && prop.Value["key"] != null + && prop.Value["emailAddress"] != null && prop.Value["avatarUrls"] != null + && prop.Value["displayName"] != null) + { + value = prop.Value["key"].ToString(); + } else if (prop.Value.Type == JTokenType.Date) { value = prop.Value.Value();