Dear Community,
I got an single select field with 3 pre-configured options.
def availableOptions = ComponentAccessor.optionsManager.getOptions(customField.getRelevantConfig(issue))
return availableOptions
How can I set one of those, without creating a new value in a post function?
Like, pseudo code:
if (A == B) {
if (A == B) {
set single select field to option 2
} else {
set single select field to option 3
}
Best,
Kristian
This article "Set a Default Option on a Select List" a good reference if you want to set a value to a single list:
Then you just need to apply your if-else statement logic to that script.
Where do intended to run this script?
What do you mean by "without creating a new value in a post function"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.