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!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Other field is not visible

I'm using the scriptrunner to Create a Select List With Other behaviour.

The idea was to select "other" in the prevoiusly created custom field and the script should have populate the single line text field custom field.


def otherFaveField = getFieldByName("Favourite Fruit (Other)")

def faveFruitField = getFieldById(getFieldChanged())

def selectedOption = faveFruitField.getValue() as String

def isOtherSelected = selectedOption == "Other"




When I create the behaviour and add the mapping the Favorite Fruit (Other) single line text field does not appear. Any ideas ?

The documentation what I'm trying to achieve here.


1 answer

1 accepted

1 vote
Answer accepted

The script should work fine.

The steps to reproduce is as followed:

1. You should have a custom select list field named "Favourite Fruit", with some options including "Other". Another custom text field named "Favourite Fruit (Other)".

2. Both fields are configured to show on the screens. You use Behaviour to hide them as needed.

3. Navigate ScriptRunner > Behaviours > create a behaviour > edit > add mapping to your project.

4. Add field: choose "Favourite Fruit" > add server side script > use the script.

I hope this helps!

Thanks it worked.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events