Skip to content

Is there a way to create an issue and set a custom field with a labels custom field type? #295

Answered by ctreminiom
breathingdust asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @breathingdust, unfortunately, we don't have dedicated method to parse the labels customfield, but you can use the following code as workaround:

var customFields = models.CustomFields{}
customFields.Fields = append(customFields.Fields, map[string]interface{}{
   "fields": map[string]interface{}{
	 "customfield_10042": []string{"label-00", "label-01", "label-not-found"},
    },
})

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@breathingdust
Comment options

Answer selected by breathingdust
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants