-
newLabel := map[string]interface{}{"update": map[string]interface{}{"labels": map[string]string{"add": "123"}}} all time with error- take a look on body... can someone assist me? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
var lblarr []map[string]string |
Beta Was this translation helpful? Give feedback.
-
I re-open this as a reminder for me to add this to the documentation |
Beta Was this translation helpful? Give feedback.
var lblarr []map[string]string
lbl := map[string]string{"add": "NEW_LABEL"}
lblarr = append(lblarr, lbl)
body := map[string]interface{}{"update": map[string][]map[string]string{"labels": lblarr}}
_, err := jiraClient.Issue.UpdateIssue(issue.Key, body)
if err != nil {
log.Println(err)
}