Creating rules based on an attribute option filter

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

To start a rule 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.

To create attribute option filters

  1. Create the basic components of the rule. To start a rule based on an attribute option filter.
  2. 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.
  3. In the list of associations, click the radio button for the value for which you want to define an option filter.
  4. Click Edit Selected.
  5. 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.
  6. Click Save.
  7. Repeat steps 3-6 until you have created as many associations as you want.
  8. When you are finished, click Done.
    A summary page is displayed showing the rule components.
  9. 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.

Editing a rule based on an attribute option filter

You can modify and remove rules that are based on an attribute option filter

To edit the rule

  1. Find the rule.
  2. From the list of dependent attributes, click the link for the rule.
    A summary page for the rule appears.
  3. In the summary page, input a new Name and Description and click Save.
  4. To change the attributes that belong to this rule, click the Edit button in the Attributes section of the page.
  5. To change which values in the target attribute are associated with a source value, click Edit Associations in the Associations section of the page.
  6. When you are finished, click Done.

To delete the rule

  1. Deleting a rule that is based on an attribute option filter is the same as deleting an action-based rule. Follow the steps in "Edit an action based dependency rule."