Editing item mapping rules

You can edit an item mapping rule to change fields copied from the source item to the new item, text to prepend or append to copied field values, and linking or folder options.

Keep the following in mind:

1. Choose Tools > Administration > Item Mapping Rules.

The Item Mapping Rules dialog box opens.

2. Select a rule and click Edit.

The rule dialog box opens.

3. If the rule is for creating requirements from requirements, optionally change the requirement type to create and the source requirement type.

4. To add a field mapping to indicate the fields to copy values to and from, click Add.

A new row is added to the Field Mappings list.

Note: You must select a field to copy before setting other mapping options.

5. To change an existing field mapping, select it and make any changes.

6. To delete a mapping, select it and click Delete. To delete all mappings, click Delete All.

7. Click Restore Default Values to restore the default field mappings. See Default item mapping rules.

8. Select a rule and click Top, Move Up, Move Down, or Bottom to organize the field order.

If multiple fields are mapped to the same field in a new item, values are added in the order displayed in the Field Mappings list.

9. Select a copy option if available for the rule.

10. Select Add the item to the same folders option to add new items to the same folders as the source items.

After the new item is saved, users can open the folder or remove the item from the folder on the Folders tab. This option is not available for generating test cases from requirements, generating test runs from test cases, or inserting shared steps in test cases.

11. If the rule is for creating requirements from requirements, select Require adding new requirements to a document to require users to add new requirements to a document.

If this option is selected, users are prompted to select a document in the Select Requirement Document dialog box before adding a new requirement. New requirements are appended to the end of the selected document. When the new requirement is saved, the document opens with the new requirement, making it easier to find.

Note: If this option is selected, users can only create requirements based on this rule if the Add Requirements to Requirement Documents security command is enabled for their security group. See Requirement documents security commands.

12. Select a Link definition to use when a new item is created from an existing item. The list includes all link definitions that allow linking the two item types. If you select a parent/child definition, select the item type to use as the parent item in the link. If the link definition only allows one of the item types as the parent, it is automatically selected and cannot be changed. This option is not available for generating test runs from test cases or inserting shared steps in test cases.

Select Prompt user before adding link to prompt users to create a link when creating new items from existing items. If this option is not selected, the link is automatically created using the default link definition. See Working with Related Items.

Note: When creating issues from test runs, a link is automatically created between the items for traceability purposes. If you select a parent/child definition in the Create Issue from Test Run rule, you can select Test Case, Test Run, or Issue as the parent in the link. The restrictions in the link definition are applied.

13. Click OK to save the changes.