Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,282
Community Members
 
Community Events
168
Community Groups

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

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

0 votes

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

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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events