Forums

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

Behaviors vs Simple Scripted Validator

Sales_Ops August 21, 2019

I want to make field B required when field A is not null. Field A and B are both write-in fields, and not drop-downs..

 

how do i do this with as little pain as possible?

1 answer

0 votes
Ilya Turov
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.
August 21, 2019

Even though using behaviour here looks more flashy (basically, validating input data on the fly), I would recommend a scripted validator, since it's much easier to make a mistake while configuring said behaviour.

Plus, validator is tied to workflow, so you will always know why there's suddenly a required field.

There's plenty of documentation for writing a simple validator from adaptavist, but I believe your's would look close to this:

!cfValues["field A"] || cfValues["field B"]

meaning you either want field A to be empty or, when it's not empty, you want field B also to have something in it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events