Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel1

Example: Enforce a field (Select List) to be set when another field (Radio Button) has a certain value (works with any kind of field type)

We have two fields: "Was the reservation system down?" is an Radio Button with possible values "Yes" and "No". Field code is %{13000}. This field is optional, since it can't be set at issue creation, but we want to be enforce it to be set in a certain transition screen, i.e., we want require a value for this field in transition screen. "System root cause" is a Select List with a list of possible causes. Field code is %{13002}. This field is optional, and we want to enforce it to be set during transition screen only in the case field "Was the reservation system down?" is "Yes", otherwise we want to enforce leaving it uninitialized. 

To implement that validation we use Boolean validator with math, date-time or text-string terms with the following configuration:Image Removed

Image Added

Text to be parsed is: %{13000} = "No" AND %{13002} = null OR %{13000} = "Yes" AND %{13002} != null



Once configured, transition will look like this:





Other examples of that function

Incoming Links
pageBoolean condition and validator with math, date-time or text-string terms
labelsexample

Related Usage Examples

Content by Label
showSpacefalse
cqllabel = "example" and label = "custom-field"