Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Based on a custom field value another custom field should be set as required using validators

anil musunuru
Contributor
March 6, 2019

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.

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Marc Minten (EVS)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 11, 2019

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...

0 votes
anil musunuru
Contributor
March 6, 2019

@Nic Brough [Adaptavist] do you have any ideas on this or know someone who does?

anil musunuru
Contributor
March 7, 2019
TAGS
AUG Leaders

Atlassian Community Events