Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width30%
Panel
borderColor#333f48
bgColor#FFFFFF
titleColor#eeeeee
borderWidth1
titleBGColor#333f48
borderStylesolid
titleOn this page

Table of Contents

Column
Table of ContentsmaxLevel1



Features used to implement the example



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:


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"