I have two custom fields A(number filed) & B(date field). if value of custom field A is not null then custom field B is required, if value of custom field A is null then custom field B is not required, want to accomplish this by writing a simple scripted validator.
Hi, scripted validators are for... validating field values (just before the issue is saved). Not for setting field behaviors (required, ...) which should be applied when a form is opened or a field value is changed.
The solution ? Use scriptrunner Behaviors for setting the behavior (required or not) of field B, every time field A is modified...
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.