Hi,
I've got custom field "QA Status" with values QA verified, QA pending, QA not needed
And I need to automatically set this field to "QA pending" if it is in "QA verified" when issue is reopened.
I try to use something like this:
FormField QAStatus = getFieldByName ("QA Status")
String QAStatusVal = QAStatus.getFormValue()
if(QAStatusVal == "QA verified")
QAStatus.setFormValue ("QA pending")
and
FormField QAStatus = getFieldById ("customFieldId=10800")
String QAStatusVal = (String) QAStatus.getValue()
if(QAStatusVal == "QA verified")
QAStatus.setValue ("QA pending")
But nothing is working for me.
I'm a new one in Behaviours. Please, help.
Thank you!