Hello,
I have a select list field that I want to hide unless another text field has a value.
I'm trying to implement the solution posted at https://community.atlassian.com/t5/Jira-Core-questions/Condition-on-a-custom-field-basis-for-triggering-behaviour/qaq-p/850186
My code for the behaviour is:
def amountToBePaidToOther = getFieldByName("Amount to be paid to Other")
def ftr = getFieldById("FTR/NPR Justification")
log.debug("Amount to be paid to Other value" + amountToBePaidToOther.getValue())
if (amountToBePaidToOther.getValue() == null) {
ftr.setHidden(true);
} else {
ftr.setHidden(false);
}
I've tried configuring the script to both fields.
When I view the customer portal, the select list field is still visible with no value in the text field.
Thank you.