Skip to content

How I can add new Label for the already exist Jira? #629

Answered by dzaina
dzaina asked this question in Q&A
Discussion options

You must be logged in to vote

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)
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dzaina
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants