Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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?

1 answer

1 accepted

0 votes
Answer accepted
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 23, 2025

Hi @al_loginov

The problem you are facing doesn't appear to be related to the Bug you mentioned, i.e. SRJIRA-7385.

Since this occurs in the JSM portal, it is caused by another Bug, i.e. SRJIRA-7092.

I suggest adding yourself as a watcher to the ticket so you will be notified when the fix is released.

I am looking forward to your feedback.

Thank you and Kind regards,
Ram

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events