I'd like to make Original Estimate field required by using Behaviours plugin. What's the proper way to address the Original Estimate field?
My code:
FormField fcompl = getFieldById(fieldChanged)
// FormField foest = getFieldByName("Original Estimate")
FormField foest = getFieldByName("Time Tracking")
String vcompl = (String) fcompl.getFormValue()
if (vcompl == "16340") {
foest.setRequired(true)
foest.setHelpText("Required.")
fcompl.setHelpText("Field Original Estimate is required.")
}
else
{
foest.setRequired(false)
foest.setHelpText("Not required.")
fcompl.setHelpText("Field Original Estimate is not required.")
}