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?
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/
Thanks @Marc - Devoteam
I managed to get it working with a variation of that...
{
"update": {
"customfield_10869": [
{{#issue.customfield_10899.split(", ")}}{"add":{"value":"{{.}}"}}{{^last}},{{/}}{{/}}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.