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"
otherFaveField.setHidden(!isOtherSelected)
otherFaveField.setRequired(isOtherSelected)
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.
Thanks