Forums

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

Whether the number of option values affects script judgment

arno
Contributor
December 19, 2024

Hi all

  I wrote a custom judgment for two multi-choice fields using scriptrunner behaviours, as follows:


 

def formField = getFieldById(getFieldChanged())
def field = getFieldByName("test")
def value = formField.getValue()
def array = []

if ( 'a' in value){

array << 'text1'

}

field.setFieldOptions(array)

At present, the test field option value has exceeded 500, my script judgment can not take effect in any case, when I create a new multi-choice field, using this string of code, the effect is normal, will the number of option values affect the script running

1 answer

0 votes
vikram
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.
December 21, 2024

Hi @arno 

I think it will effect the values while running. 

I am thinking that field value configurations might effect (if we have limited configuration)

As of now I can think of this only. 

Vikram P 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events