Dynamic pick-list fields #23940/HEAD / v5217 |
Issue Field Value Dependencies / Reference DependenciesTable of Contents
This is controlled in the distribution and aggregation rules shown in Category/Tracker → Customize → Fields for each applicable field: The set of applicable distribution and aggregation rules for a field depends upon the field and its type. Standard Distribution Rules
Standard Aggregation Rules
A field can have no rules at all, either an aggregation rule or a distribution rule, or both. A field with an aggregation rule, but without a distribution rule, will only be editable as long as the item/issue doesn’t have children. As soon as children exist, an aggregated field without a distribution rule will become read-only. For static choice fields: Minimum, Maximum, Least and Greatest will be determined according to the order of field choice values, as defined via Category/Tracker → Customize → Choice Lists . If the internal order of choice values is logically descending (like the standard CodeBeamer Severity values), in order for an aggregated field to show the logically highest field value, the aggregation rule must be Minimum. Recommended Combinations of Distribution and Aggregation RulesIf a field has both an aggregation rule and a distribution rule, care must be taken that both rules do not conflict. Choose the aggregation rule first and then decide which distribution rule (if any) is appropriate.
These aggregation and distribution rule recommendations don't have to be followed, but the resulting effect may be difficult to predict if the suggestions are ignored. For new trackers, the recommended aggregation and distribution rules will be placed by default with the corresponding fields. In existing trackers, the distribution and aggregation functions are available, but there is no automatic rule setting. The rules will be implemented only on new issues. ExamplesNumeric Field Type Examples:
Set or Choice Field Examples:
Dependencies between different fields of the same item (Cascading fields)Besides the dependencies between the same field of parent and child items in a tracker, which are controlled via the field's Aggregation and Distribution rules, CodeBeamer (since CB-7.0) also allows to define dependencies between different Choice/Country/Language/Reference fields (of the same item). Static field value dependenciesE.g. The (values of the) Language field of a Contact should depend on (the values of the) Country field:
To define the actual/allowed Country/Language field value combinations, click on the "depends on Country" link. In the popup dialog, you can then define the allowed value combinations for the combined fields by clicking on the 'Add static dependency' link: Reference field value dependencies between work/configuration itemsSince CB-7.7.1, CodeBeamer also allows to define dependencies between work/configuration item reference fields, based on relations of the underlying tracker(s). There are two cases:
Dependency with parent-child relationshipE.g. there are countries and languages defined in a tracker in parent-child relationship, so the parent items are countries and the child items are languages and they are defined in the same tracker. Some example items in this Language Usage tracker could look like this:
Let's choose an other tracker where we can define the Country and Language choice fields, for example the Team tracker. A team will have a country and we define allowed languages for the team depending on the country of the team. The Country and Language fields are choice fields, both are referring to items from the Language Usage tracker:
After defining the Country and Language fields and we set the Language field to depend on Country the field configuration looks like this:
Now if we click on the "depends on Country" link then there is a new selector for reference dependencies, in addition to the static field value dependency link explained earlier.
This selector lists all source trackers for the "Depends On" field (in our example, there is only one: Language Usage). If there is only one source tracker, then a dependency for that will be automatically configured.
The resulting reference field value dependency reads as:
Reference based dependencyIn this example the countries and languages are defined in two different trackers and we have a relation via the Subject field from the Language to the Country tracker. The field configuration of the Subject field in the Language tracker looks like this:
As in the previous example a team will have a country and we define allowed languages for the team depending on the country of the team. We can define the Country and Language choice fields as follows:
The Language field depends on the Country field:
If you look at the (extract of) the Tracker Class Diagram:
you will see that there is a relation between Language and Country via the reference field Subject.
Now if we browse the field configuration of the Team tracker click on the "depends on Country" link of the Language field then there is the "Add reference dependency" selector in the Field Dependencies dialog.
If you select a source tracker (Country in our example), a new entry will be added to the dependencies:
If there is only one source tracker, then a dependency for that will be automatically configured.
The resulting reference field value dependency reads as:
This function is available since codeBeamer 10.0 release.
Hovering over a value while editing the dependent field displays a tooltip containing information about the dependency relations of the selected value.
|
Fast Links
codebeamer Overview codebeamer Knowledge Base Services by Intland Software |
This website stores cookies on your computer. These cookies are used to improve your browsing experience, constantly optimize the functionality and content of our website, furthermore helps us to understand your interests and provide more personalized services to you, both on this website and through other media. With your permission we and our partners may use precise geolocation data and identification through device scanning. You may click accept to consent to our and our partners’ processing as described above. Please be aware that some processing of your personal data may not require your consent, but you have a right to object to such processing. By using our website, you acknowledge this notice of our cookie practices. By accepting and continuing to browse this site, you agree to this use. For more information about the cookies we use, please visit our Privacy Policy.Your preferences will apply to this website only.
Note that user-behavior analytics are being captured on this server for the purpose of improving the Codebeamer user experience.