Given the user is trying to create or edit an issue,
When the component (Component/s) is chosen as "Generic_Tasks"
Then the custom field "DoD" (customfield_14201) should be hidden.
This is the simple script I used but it doesn't seem to work:
def ComponentsField = getFieldById("Component/s")
def DoDField = getFieldById("customfield_14201")
def Componentvalue = ComponentsField.getValue()
if (Componentvalue == "Generic_Tasks") {
DoDField.setHidden(true)}
else {
DoDField.setHidden(false)
}
Any help here is highly appreciated.
Thanks in advance,
Venkat