Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Populate multi select list from string using Automation

Tim Finch
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2025

Hello All,

I have a challenge...

I have a jira automation that pulls a set of values in a string "Value 1, Value 2, Value 3 etc"

I then have a multiselect list with those values.
I am trying to write an automation:

* when value of string changes
* Edit multi select list and select all values in the string.

I've got it working for a single value, but as soon as I add a second value to the string Jira automations can't handle it an rather than selecting a second option, clears all options.

Any ideas how I can get the automation to get all values in the string and populate the multiselect choices?

1 answer

1 accepted

1 vote
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 17, 2025

Hi @Tim Finch 

Welcome to the community.

You would use an advanced JSON action to do this.

Store your values in a variable.

Then edit the multi select field by using the more actions, to use JSON.

Example, I did this on retaining the already available fix version;

{
"update": {
"fixVersions": [
{ "add": {"name" : "{{ExistingFixVersion}}" }
}
]
}
}

Some more info: https://support.atlassian.com/automation/kb/how-to-update-a-select-field-multiple-from-the-content-of-other-fields/ 

Tim Finch
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2025

Thanks @Marc - Devoteam 

I managed to get it working with a variation of that...


{
"update": {
"customfield_10869": [
{{#issue.customfield_10899.split(", ")}}{"add":{"value":"{{.}}"}}{{^last}},{{/}}{{/}}
]
}
}

Like Susan Waldrip likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events