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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


script runner behaviours-How to select list custom fields behaviour

Here is my script but it gives error ;

def Welches System = getFieldById("customfield_25108")
def Welcher Service/Betroffene Kachel = getFieldById("customfield_25203")

if(Welches System.getValue()){
def selectedOption = Welches System.getValue() as String
if(selectedOption == "MKH"){
Welcher Service/Betroffene Kachel.setHidden(true)
Welcher Service/Betroffene Kachel.setRequired(false)
Welcher Service/Betroffene Kachel.setHidden(false)
Welcher Service/Betroffene Kachel.setRequired(true)


what I am wanting if the customfield_25108 is as a value select "MKH" then my other cascade type customfield_25203 hidden(true) and requied(false)

the other options for my  customfield_25108 ;



When selected value as "NKH"  then customfield_25203 required(true)


1 answer

1 accepted

0 votes
Answer accepted
Murat Seven
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.
Nov 05, 2023

Hi @Cem Tuğrul , thanks for your question.

I've tested the script in a similar manner in my instance and it's working. Are you sure you've added the script to the correct field in the behavior?

For example, as I indicated in the screenshot, since my variable field is "assetCF", I selected it from the field section and added the script to it. Please double-check, and if the issue persists, could you please provide more information?


Screen Shot 2023-11-05 at 8.29.03 PM.png

Murat Seven

Hi Murat,


I have changed as below then it is working now. (Çok saol Hocam)


def WelchesSystem = getFieldById("customfield_25108")
def WelcherServiceBetroffeneKachel = getFieldById("customfield_25203")

def selectedOption = WelchesSystem.getValue() as String
if(selectedOption == "MKH"){

Like Murat Seven likes this

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events