Creating custom attributes
You can create custom attributes on source file versions, streams, snapshots, components, and baselines. You define custom attributes in the project area. You can query for custom attributes from the command line interface.
Before you begin
About this task
- Navigate to the project area in the administrative web interface. See Logging in for project administrators and team leads (web).
- In the project area or team area, click .
- On the Source Control - Attribute Definition page, click Add.
- In the Add Attribute window, complete
the appropriate fields and select the types of objects that allow
the custom attribute. If file is selected, in the Behavior
when a new file version is created area, select one of
the following options:
Note: If version of a file or baseline is part of a component that is owned by multiple project areas, you can set a custom attribute only if it defined in all parent project areas.
- Do not create the attribute: If the custom attribute existed on the previous version of file, it is not created on the new version of the file when you check in your changes.
- Copy the attribute value from the previous version: If the custom attribute existed on the previous version of the file, it is created on the new version of the file and its value is set to the value of the attribute on the previous version.
- Reset the attribute value to the default value: If the custom attribute existed on the previous version of file, it is created on the new version of the file and its value is set to the default value of the attribute as defined in the project area.
- Click Add.
- Click Save.
- Optional: To edit an attribute, hover under the Actions column and click Edit Attribute. In the Edit Attribute window, you can change the name, types, default values and checkin behavior (when a new file version is created). Save the changes.
- Optional: To delete an attribute, hover under the Actions column and click Delete attribute to delete the attribute.
What to do next
Create custom attributes from the command line interface.