Forums

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

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?

2 answers

1 accepted

1 vote
Answer accepted
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
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

 

 

0 votes
Stephen Lam
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!
May 22, 2025

We are also waiting for this fix for our JIRA Cloud use case. 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events