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"?
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.