Risksheet uses Polarion’s Lucene query engine to filter and retrieve work items displayed in the grid. Queries appear in data type configurations, autocomplete search, and query factory functions.
Risksheet supports SQL queries for complex filtering scenarios using the SQL:(...) prefix:
{ "dataTypes": { "risk": { "query": "SQL:(SELECT wi FROM WorkItem wi WHERE wi.project.id = 'AutoSafety')" } }}
SQL query syntax and available tables/fields depend on your Polarion server version. Verify supported SQL constructs in your environment before deploying.
Query factories provide dynamic query filtering through custom JavaScript functions registered on the window.risksheet.queryFactories object. They enable context-aware filtering of linked items in autocomplete dropdowns.
Document IDs with _default/ prefix (default modules) have the prefix automatically stripped before query construction. Document paths containing spaces or special characters are automatically quoted in the generated query.
The autocomplete suggestion system uses queries to search for matching work items:
Parameter
Type
Default
Description
Fuzzy search
Boolean
See application
Enables approximate matching for spelling variations
Wildcard search
Boolean
See application
Allows * wildcard characters in search terms
Keyword matching
Boolean
See application
When enabled, all search terms must be present (AND logic)
Result limit
Number
50
Maximum number of suggestion results returned
Minimum query length
Number
3
Minimum characters before autocomplete activates
Suggestions are automatically scoped to the current project. Cross-project suggestions are not available in the default autocomplete. Newly created items that have not been saved appear in suggestions for the current session.