--- a/bitbucket/converter.go Wed Jan 15 23:37:24 2020 -0600
+++ b/bitbucket/converter.go Wed Jan 15 23:39:15 2020 -0600
@@ -66,6 +66,8 @@
Comments: []*youtrack.Comment{},
+ yt.Voters = flattenAuthors(userMap, bb.Voters) // map field values from bitbucket to youtrack
if replace, found := priorityMap[yt.Priority]; found {
--- a/bitbucket/types.go Wed Jan 15 23:37:24 2020 -0600
+++ b/bitbucket/types.go Wed Jan 15 23:39:15 2020 -0600
@@ -3,6 +3,8 @@
+ "hg.sr.ht/~grim/youtrack-import/youtrack" @@ -14,6 +16,18 @@
+func flattenAuthors(userMap map[string]*youtrack.User, authors []Author) []string { + flat := make([]string, len(authors)) + for idx, account := range authors { + if user, found := userMap[account.AccountID]; found { Assignee Author `json:"assignee"`
Component string `json:"component"`