Suggestion Endpoint
Text Field Suggestions
Provides autocomplete suggestions for custom text fields by querying existing values from the database.
Parameter Type Default Description fieldstringRequired Custom field identifier to suggest values for querystringRequired Partial input text to match against typestringNone Work item type filter for type-specific suggestions projectstringRequired Polarion project identifier (auto-scoped) limitinteger50Maximum number of suggestion results returned fuzzybooleantrueEnable fuzzy matching for approximate searches starbooleantrueEnable wildcard search with * characters allbooleanfalseRequire all keywords to match (AND logic) vs. any keyword (OR logic)
Text field autocomplete is controlled by the global.suggestTextFields configuration property (default: true). When enabled, the system queries existing field values and suggests matching entries as you type.
Search Behavior
Feature Description Fuzzy search Matches values even with minor typos or spelling variations Wildcard search Use * as a wildcard to match partial text (e.g., *brake* matches Brake Failure) Keyword filtering When all is true, all search terms must appear in results (AND logic) Project scoping Suggestions are automatically scoped to the current project Column-specific Each column provides suggestions tailored to its field type Type-based filtering Suggestions vary based on the work item type being edited
Project-Level Configuration
Suggestion behavior is configurable at the project level:
Property Type Default Description Keyword search mandatory booleanfalseWhen enabled, you must provide keywords when searching for items to link Fuzzy search booleantrueEnables fuzzy matching in the item suggester Suggester result limit integer20Maximum number of suggestions shown in dropdowns Wildcard search booleantrueEnables wildcard searching with * and ? characters All-field search booleanfalseSearches all fields of linked items instead of just primary fields
Project-level suggestion settings are configured in the Risksheet project properties. Contact your administrator to adjust these defaults.
Link Column Autocomplete
Item Link Columns
Link columns use OData queries to search for linkable work items:
Feature Description Minimum query length 3 characters required before search executes Search method substringof match on work item ID and typeDropdown arrow Click to browse all available items or toggle the suggestion dropdown Empty field prompt Shows “Start typing” message when clicking dropdown on empty field SEARCH_ALL tokenSpecial query that retrieves the full item list
Auto-Selection
When autocomplete returns exactly one matching item for non-task columns, the system automatically selects it. This speeds up data entry for unambiguous searches.
Inline Item Creation
When canCreate is true on a link column, you can create new linked work items directly from the autocomplete dropdown:
Property Type Default Description canCreatebooleantrueEnables “Add new <type>” option in autocomplete dropdown
The new item is created with the typed text as its title.
Multi-Item Link Editor
The multi-item link editor extends the autocomplete system for columns that reference multiple linked work items:
Feature Description Minimum query length 3 characters required to trigger search Duplicate prevention Selecting an already-linked item shows a toast notification Local changes Newly created items appear in search results before saving Change tracking Boolean changed flag enables dirty state indicators Custom query filtering queryFactory applies context-aware filters to narrow suggestions
Query Factory Integration
Columns can use a queryFactory to apply custom OData filters to autocomplete results:
{
"columns" : [
{
"id" : "linkedReqs" ,
"header" : "Requirements" ,
"type" : "multiItemLink" ,
"queryFactory" : "filterByProject"
}
]
}
Query factories are registered via window.risksheet.queryFactories and enable context-aware filtering such as:
Restricting items to a specific project
Filtering by work item state or status
Applying business-logic constraints
See Query Syntax for query filter details.
Suggestion Validation
Suggested items are validated using configured validator logic:
Validation Behavior Valid suggestion Displayed in dropdown as normal Invalid suggestion Filtered out of results Invalid user selection Cell marked with cell-invalid CSS class (red highlight)
Local Changes Integration
Autocomplete suggestions include items created in the current session but not yet saved to the server:
Source Behavior Server data Queried via /risksheet/suggestion/ or OData endpoints Local changes Merged into results from in-memory session state Combined Both sources displayed in unified dropdown
This allows you to link to newly created items immediately without saving first.
Complete Example
{
"global" : {
"suggestTextFields" : true
},
"columns" : [
{
"id" : "failureMode" ,
"header" : "Failure Mode" ,
"binding" : "title" ,
"type" : "text"
},
{
"id" : "linkedReqs" ,
"header" : "Requirements" ,
"binding" : "linkedReqs" ,
"type" : "multiItemLink" ,
"canCreate" : true ,
"queryFactory" : "filterByProject"
},
{
"id" : "mitigationTask" ,
"header" : "Mitigation" ,
"binding" : "mitigationTask" ,
"type" : "taskLink"
}
]
}
In this configuration:
The failureMode text column shows autocomplete suggestions from existing failure mode values
The linkedReqs multi-item link column searches for requirements with a custom query filter and allows inline creation
The mitigationTask task link column provides autocomplete with uniqueness validation to prevent duplicate task assignments
Related Pages
Source Code
CellEditorFormatter.ts
TextEditor.ts
SuggestionServlet.java
AppConfig.ts
RisksheetProjectProperties.java