Hide If and Mandatory if formula #7214680/HEAD / v175 |
Tags:
not added yet
Hide if and Mandatory if formulaFrom codeBeamer 9.5 you have the ability to hide fields or make the fields to mandatory of a Tracker Item by using a computed formula. You can use the same expression language as you use for Computed field formulas. Table of Contents
Hide if formulaSet Hide if formulaGo to Tracker Configuration page Fields tab and select a field. Below the Computed as row you can see a Hide if row where you can type your own formula. Please note that Hide if formula is not available for Summary and Description fields. In this example we use the Requirement tracker of the Agile-Scrum Smart Template. We set the following Hide if formula for the Resolution field: categories[0].name == 'Information' It means that if the value of the Type choice field (which has the property name categories) set to Information, the Resolution field and its value will be hided immediately.
Same asOnce you set at least one Hide if formula, you are able to use the same for other fields too. Select a field where you want to copy the Hide if formula and check the checkbox. In this example we use the same Hide if formula for Complexity field as for Resultion field. The formula will be copied to the textarea in read-only mode.
Affected pages
Please note that Hide if formulas will not be used on Table View / Report pages. You will see all of the fields and its values in these pages independently of the set Hide if formulas.
Please note that Hide if formulas is currently supported only for HEAD version of items.
Handling mandatory fieldsYou can use Hide if formula and mandatory field at the same time, but the behaviour can vary if a field is hided or shown because of the set Hide if formulas. If a field is mandatory, but it is hided because of a Hide if formula, the mandatory check will be skipped, and so the mandatory field value could be empty. Once the field get shown, the mandatory check will apply. Mandatory if formula
Mandatory if functionality is supported from codeBeamer 20.11.
From codeBeamer 20.11 you have the ability to make fields mandatory of a Tracker Item by using a computed formula. You can use the same expression language as you use for Computed field formulas.
Set Mandatory if formulaGo to Tracker Configuration page Fields tab and select a field. Below the Hide if row you can see a Hide if row where you can type your own formula. Please note that the Mandatory if formula is not available for Summary and Description fields. In this example we use the Task tracker of the Agile-Scrum Smart Template. We set the following Mandatory if formula for the Assigned to field: namedPriority.name == 'High' || namedPriority.name == 'Highest' It means that if the value of the Priority choice field (which has the property name categories) set to High or Highest, the Assigned to field value should be mandatory.
Same asOnce you set at least one Mandatory if formula, you are able to use the same for other fields too. Select a field where you want to copy the Mandatory if formula and check the checkbox. In this example we use the same Mandatory if formula for Reease field as for Assigned to field. The formula will be copied to the textarea in read-only mode. In that case Assgined to field and Release field will be mandatory if the value of the Priority field is High or Highest.
Affected pagesTracker Item Edit pageWhile editing the field values, the Mandatory if formula will be checked immediately. If some fields became mandatory because of the formula, the affected fields will flash with yellow background and the red star will display next to the field label. Table columns are also affected. In our example, I set the Priority field to Highest, so that the Release and the Assigned to fields became manadatory. Mandatory check will perform while trying to Save tracker item and user will get an error message if tries to save "normal" mandatory fields or fields with Mandatory if formula without value.![]()
Tracker Item Details page / Inplace editUsing inline edit on Tracker Item Details page, if user modifies a field value, and some other fields became mandatory because of the Mandatory if formula, a Mandatory field dialog will display which will show the missing mandatory fields and user can add values to that fields as well. So the user can save the modifications in one step. In our example, I set the Priority field to Highest on Tracker Item Details page. Release and Assigned to fields do not have values. When try to save the modified Priority value, a dialog appears with the missing Release and Assigned to fields (which became mandatory because of the Mandatory if formula). Save performs only when user fills out the missing mandatory field values in the dialog.
Note: Table fields are not displaying in that dialog.
Edit Mandatory Fields dialogThe Mandatory field dialog will display on the following pages as well, mostly on all of the pages where inplace edit is enabled:
Functionalities with Mandatory if checkThe following functionalities will check Mandatory if formula when trying to save Tracker items. Error messages will appear if fields became mandatory because of the formula:
Disbeld functionalitiesDoors and Jira integration is not possible for trackers where there is at least one field with Mandatory if formula. Also, if a tracker is already synchronized with Doors/Jira, the Mandatory if input will be disabled for any fields. Handling Mandatory if formulas with Hide if formulasYou can use Hide if formula and Mandatory if formula at the same time, but the behaviour can vary if a field is hided or shown because of the set Hide if formulas. If a field is Mandatory because of the Mandatory if formula, but it is hided because of a Hide if formula, the mandatory check will be skipped, and so the mandatory field value could be empty. Once the field get shown, the mandatory check will apply. |
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.