I have the following checkbox field:
Existing Program or Campaign? ( customfield_10209 )
It has two checkboxes: Yes, No
If (and only if) the "Yes" checkbox is selected, I need the following field to appear on the screen:
Campaign or Program Name ( customfield_10208 )
My server side script:
def checkBox = getFieldById("customfield_10209")
def conditionA = getFieldById("customfield_10208")
conditionA.setHidden(true);
if (checkBox.getValue() == "Yes") {
conditionA.setHidden(false);
}JIRA Core version 7.1.9
Script Runner version 4.3.6
When creating an issue, the "Campaign or Program name" field always appears. If you tick the "No" checkbox, it goes away. If you untick the "No" checkbox it stays away. If you tick the "Yes" checkbox it appears. I need to make it not appear initially and only when the "Yes" checkbox is ticked.
Any suggestions are appreciated.