Create a filter-based dependency rule

You can create a rule that is based on an attribute option filter.

  1. Begin a new rule, as described in "Define a dependency rule based on an option filter"
  2. In the Create New Project Rule page, select Attribute Option Filter.
  3. Click Continue. The Add Option Filter page is displayed.
  4. Provide a Name and a Description for this rule.
  5. Select the source and target attributes. If there are no attributes displayed in the Source Attribute drop-down list, you need to add list-type attributes to the artifact. You can use a source attribute in multiple option filters. However, an attribute can only be used once as a target. If an attribute is missing from the Target Attribute drop-down list, it may already be in use in a rule.
  6. Click Save. A summary page is displayed, showing the rule components. You can now define associations between the source attribute values and the target attribute values. These are the attribute option filters.
  7. Create the basic components of the rule. To start a rule based on an attribute option filter.
  8. From the summary page for the rule, in the Associations section, click Edit Associations. The Add Associations for the Selected Option page appears. This page displays a list of values for the source attribute.
  9. In the list of associations, click the radio button for the value for which you want to define an option filter.
  10. Click Edit Selected.
  11. In the Create New Associations section of the page, select the target attribute options that you want to display when a user sets the source option to this value. For example, suppose that you have selected Status as the source attribute, and the source attribute value is New. You could select a target attribute called Resolution, and restrict the values shown for Resolution to be None or Will Not Fix when a user sets the value of Status to New.
  12. Click Save.
  13. Repeat steps 3-6 until you have created as many associations as you want.
  14. When you are finished, Click Done. A summary page is displayed showing the rule components.
  15. If the rule is complete, Click Done. The main page for the artifact appears. The rule is summarized in the Attribute Dependency Rules section at the bottom of the page. Note: If all parts of the dependent attribute rule are complete and valid, the rule is valid. If any component of the rule is invalid, the entire rule is invalid.
To modify and remove a rule based on an attribute option filter, edit the settings on the summary page for the rule.
Note: Deleting a rule that is based on an attribute option filter is the same as deleting an action-based rule.