Hi Team,
How to remove the field required based on below condition. Could anyone please suggest me on this. Both are in same workflow.
If Requester Dept. = RFI, Type = Change Request, and Enablement = Yes, then do not require RI Consultant field.
-------------
Fields Required Validator (JMWE add-on)
I used below validator and working fine
The "RI Consultant" field is required when "Issue Type = Change Request" and "Requester Dept. = RFI"
This validation only applies if the following condition is true:
issue.getAsString("Issue Type") == "Change Request" && issue.getAsString("Requester Dept.") == "RFI"
Thanks!
and i am trying use below script in behaviors.
and trying with this one also.
import com.atlassian.jira.issue.customfields.manager.OptionsManager
def requesterdeptcf = getFieldByName("RequesterDept")
def enablementcf = getFieldByName("Enablement")
def riconsultantcf = getFieldByName("RIConsultant")
def RequesterDept = requesterdeptcf.getValue() as Requester Dept.
def enablement = enablementcf.getValue() as Enablement
If ("Requester Dept." == "RFI" && "Enablement" == "Yes")
{
riconsultantcf.setRequired(false)
}
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.