Dear All,
I am a first time user of Jira Software and am currently trying to set up an issue with several fields, with some only being shown based on the value a user previously selects.
To implement this, I am using the ScriptRunner add-on. When trying to add a behaviour to a text field to make it appear only if a user selects a certain value from a list, i.e. a custom field, nothing happens.
Here is my code:
def reqValF= getFieldById('customfield_10501')
def depTxtF = getFieldById('customfield_10503')
def reqValF_val = reqValF.getValue()
if (reqValF_val == "New"){
depTxtF.setHidden(false)
}else{
depTxtF.setHidden(true)
}
Thank you!