Hello, is it possible to check the value of a field against all options of a dropdown list within workflow validation? The examples given from the documentations only lets you compare the actively selected value in the dropdown list, not the whole list.
cfValues['My Select List']?.value == 'My value'
'My value' in cfValues['My Multi List']*.value
Hi @ys
If I understand you right you need all possible values of the select list field. You can get it using the following code
def config = ComponentAccessor.customFieldManager.getCustomFieldObjectsByName('cfName').first().getRelevantConfig(issue)
def optionValues = ComponentAccessor.optionsManager.getOptions(config)*.value
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.