Assume there is a comma separated text string textstring = "option1, option2, option3"
All the values in textstring are always possible select options of multi-select custom field selectfield
How can I update values from textstring to selectfield using Jira Cloud automation?
textstring can contain from 0 values to 3 values max.
Thanx, Scenario 4 looks same as mine, so will try the solution proposed.
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.
@Dick I would need help
The JSON of Scenario 4 in Update Multiple Choice Fields Using Automation in Jira | Automation | Atlassian Support is reported invalid
{ "update": { "Select List Multiple Choices": [ {{#issue.Select List Multiple Choices 2}}{"add": {"value":"{{value}}"}}{{^last}},{{/}}{{/}} ] } }
Invalid JSON!
Error: Parse error on line 1: ...ltiple Choices": [ {{#issue.Select List -----------------------^ Expecting 'STRING', '}', got '{'
In my case using below static update works nicely
{
"update": {
"Used by": [
{"add": {"value":"Option A"}},
{"add": {"value":"Optino B"}}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for reporting that in @Ari Raatikainen , and providing the correct answer.
I've reported the error and linked it to this community question.
Kind regards,
Dick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. Although the static update works, I am still in need of solution for Scenario 4.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The basic construct (from Atlassian on field editing )
{
"update": {
"description": [{
"set": "a new description"
}],
"labels": [{
"add": "test-label"
}]
},
"fields": {
"summary": "woohoo! a new summary"
}
}
The elements in the array should have curly braces (in bold) and a string "value": is put in too much:
{ "update": {
"Select List Multiple Choices":[
{{#issue.Select List Multiple Choices 2}}
{
"add": "value":"{{.value}}"
}
{{^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.