Hi Team,
I want hide a text field depending on the value of select list field. written a below script but not getting expected output.
Can you please check and let me know where I am wrong:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.security.roles.ProjectRoleManager
def textField = getFieldById("customfield_22695")
def selectList = getFieldById("customfield_22694")
def selectListValue = selectList.getValue()
if (selectListValue == "None")
{
textField.setHidden(true)
}
else
{
textField.setHidden(false)
}