Field rules

Field rules in aqua

Field rules let you control how fields behave depending on the values selected in the controlling fields. This functionality helps you build logic into your projects — making it easier to guide users, enforce consistency, and automate field behavior.

Field rules can be applied to:

  • Requirements

  • Test cases

  • Test scenarios

  • Defects

Types of field rules

Field rules consist of two main parts: Restrictions and Actions.

Restrictions

Restrictions define which values are available in one field depending on the value selected in another field. They help narrow down options for users or prevent invalid combinations.

Example

Let’s say you have a requirement where there are two single-select fields:

  • Field name: Field A Field values: Item 1, Item 2, Item 3, Item 4, Item 5

  • Field name: Field B Field values: Option 1, Option 2, Option 3, Option 4, Option 5

You can create a rule like this:

  • If Field B value equals Option 1, show only Item 1 and Item 2 in Field A

  • If Field B value equals Option 2, show only Item 3 and Item 4 in Field A

  • If Field B value equals Option 3, show Item 1 and Item 5 in Field A

If no rule is set, it would look like this. Disregarding the selected item in Field B, Field A has a full list of values

If a rule is set, then the Field A will have a list of values that are controlled by the value from the Field B as per defined rule.

You can define multiple restrictions for different combinations of fields.

To set up a Restriction rule, do the following steps:

  • Create single select fields in the template for your item type if you don't plan to use default only.

  • Select project and navigate to the Field rules

  • Select item type and then a field that will be affected

  • Then controlling field

  • Then select the value from the controlling field

  • Then values for the affected field that will be shown

  • Save changes

Actions

Actions define how a field should behave based on the value selected in another field.

The are following action rules that be can defined:

  • Set value

  • Required

  • Read-only

  • Highlight

  • Visible/Hidden

For example:

  • If the Field A value equals Item 1, then the Field B will be Required

This allows you to dynamically adjust forms depending on context.

Actions set up

  • Go to Project Configuration → Field Rules.

  • Select the item and then the controlling field (the field whose value triggers the rule).

  • The select the rule ‘Actions’.

  • Once you select ‘Actions’, then click 'Add new action’’ and select the controlling from the dropdown that will affect another field.

  • Then select the affected field.

  • Define the desired logic and behavior by checking one or multiple checkboxes: set value, required, read-only, highlight, visible.

  • Click Save to apply changes.

Please note:

  • When you select ‘Set value’, you can define a default value that will always be applied.

  • The ‘Visible’ option is enabled by default. If you want to hide the field, simply uncheck it.

  • The ‘Visible’ option is automatically checked whenever a field is set as required.

Furthermore, field values from single-select fields with shared value sets can be set automatically when creating dependent items or creating defects from test executions.

Last updated

Was this helpful?