Can we add multiple labels through the advanced field edit?
i'm basically looking to do something like this:
{
"update": {
"labels": [
{
"add": "Label1", "Label2"
}
]
}
}
It works fine for adding 1 label but I also need to add multiples and can't figure it out.
Hi @Ryan Markle
You can add multiple labels through advanced fields as follows:
{
"update": {
"labels": [
{
"add": "Label1"
},
{
"add": "Label2"
}
]
}
}
Cheers,
Eric
Thanks Eric! That works.
Any idea how to handle that with an array list? I have an array of label names I want to add to an issue. Is it possible to iterate over that array and add them?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you get answer on that ? Were you able to do it ? I have the same issue...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately not - I tried to a while before abandoning this approach and just going straight to the JIRA cloud API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Searched a little more and found this that does the trick :
{
"update": {
"labels": [{{#issue.customfield_10510}}{"add": "{{.}}"}{{^last}},{{/}}{{/}}]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.