Scriptrunner Behaviors .setFieldOptions not working

al_loginov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2025

Hi everyone!
I ran into an issue with SR Behaviors. After updating Jira from 8.20 to 9.12.12 (SR version 8.39.0), part of the behaviors related to hiding options in a cascading field stopped working (it works fine with regular select fields). Interestingly, the options are hidden within the issues themselves, but no longer on the SM customer portal.
I do it this way:

def classfic = getFieldById("customfield_41100")
def availableOptions = ["47300":"case1", "47301":"case2"] // ["case1","case2"]
classfic.setFieldOptions(availableOptions)

I tried installing the old version of SR, but it didn't help. Seen this issue SRJIRA-7385 but it is being reproduced on v126 chrome, and sr version is latest.

Can somebody knows how to fix this issue?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events