Prerequisites
Before configuring dropdown categories, ensure you have:- Administrative access to edit RISKSHEET configuration
- A custom enumeration created in Polarion Administration
- Familiarity with the top panel template
Step 1: Create the Enumeration in Polarion
Navigate to Administration > Work Items > Enumerations and create a new enumeration with your category values:Step 2: Add Dropdown to Top Panel
Edit therisksheetTopPanel.vm Velocity template to add the dropdown menu. Access this through Menu > Configuration > Edit Risksheet Configuration > Templates tab.
Add the following HTML to your template:
Step 3: Create Query Factory Function
In therisksheet.json configuration, add a query factory function that reads the dropdown value and builds a query filter:
Step 4: Apply Query Factory to Link Column
Modify the item link column configuration to use the query factory:queryFactory property references the function name defined in step 3.
Configuration Flow
Common Patterns
Multiple Dependent Dropdowns
Combine multiple dropdown selections in a single query factory:Required Category Selection
Show no results until a category is selected:Verification
- Save your configuration changes
- Reload the RISKSHEET page
- You should now see your custom dropdown in the top panel
- Select a category value
- Click into an item link column cell
- The autocomplete suggestions should display only items matching the selected category
- Change the dropdown selection and verify the autocomplete results update accordingly
Troubleshooting
Dropdown appears but filtering doesn’t work: Verify thequeryFactory function name in the column configuration exactly matches the key in queryFactories. JavaScript is case-sensitive.
JavaScript errors in browser console: Check that your jQuery selector matches the dropdown’s id attribute. Verify the query syntax returns valid Polarion query strings.
Filter works once then stops: Query factories cache results. If the filter should update dynamically, users need to close and reopen the autocomplete dropdown after changing selections.
See Also
- Customize the Top Panel - Add custom controls and UI elements
- Configure Queries - Build Polarion query strings
- Use Query Factory - Advanced query factory patterns
- Configure Dependent Enums - Create cascading enum dropdowns
- Item Link Columns - Reference documentation for item link column types
Sources
Sources
KB ArticlesSupport TicketsSource Code
EnumComboBox.tsMultiEnumEditor.tsRiskSheetContextMenu.tsAppConfigParser.ts