I need an automation to create an issue. In that issue that it creates, I need the automation to populate the label field. The contents of the label field need to come from a comma delimited text field, I'm having difficulty implementing this.
Here are the steps I've taken so far:
When I run this, even though I don't have spaces, I get an error saying that the label cannot contain spaces:
Some other things that I've attempted are to try to change the smart value expression to the following:
Additionally, I've attempted to add the labels after creation by creating the issue and sending the key of the created issue and each individual label (though advanced branching) through a websocket, then through a different automation adding the labels in. But the problem with this method is that it creates a race condition and not all labels get added because they override one another...
I figured it out... You have to do the splitting in the "additional fields" (JSON area). You need to split the text then convert it to a JSON array:
{
"fields": {
"Labels": {{userInputs.label.split(",").asJsonStringArray}}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.