Hi Team,
Recently I have resolved a task that i have by using the script runner plugin Behavior .
when we select an "Ticket System" and "Other" option in Select List(single choice) a Text field have to appear this is the task that i have resolved here is the link please refer : https://community.atlassian.com/t5/Jira-discussions/In-Select-List-Single-Choice-customfield-selecting-an-Option/m-p/917813#M5103
here is the Script that i have used
def otherFaveField = getFieldByName("Name Of TextField") //Give a text field custom field name that you have created
def faveFruitField = getFieldById(getFieldChanged())
def selectedOption = faveFruitField.getValue() as String
def isOtherSelected = (selectedOption == "Other" || selectedOption == "D") //instead of Other/D You can give another option that you want
otherFaveField.setHidden(! isOtherSelected)
otherFaveField.setRequired(isOtherSelected)
so every thing is fine now here when I select the Other option the text field is appearing and i'm entering an Text in the Text fields and i'm creating ticket .
after creating ticket when i edit the Selected List(Single Choice) field and selecting another option still the Text Field is showing.
Here i want when i change the Select Filed the text field should be empty.
please can anyone help in script.
Thanks,
Phani