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.") }
IIRC it's getFieldById("timetracking")
Thanks for tip. I changed the approach by searching id. It's getFieldById("timetracking_originalestimate").
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
time tracking stuff is not supported well in behaviours at the moment...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.