Configure custom Lucene queries to control which work items appear in your RISKSHEET by filtering based on project, document, type, or custom field values.
To filter work items based on custom field values, reference the custom field ID in your query:
Copy
Ask AI
"query": "customFields.severity:(high OR critical)"
For document-level custom fields, use SQL syntax when simple property queries fail:
Copy
Ask AI
SELECT WI.C_PKFROM WORKITEM WIINNER JOIN MODULE M ON WI.C_MODULE_FK = M.C_PKINNER JOIN CF_MODULE CFM ON M.C_PK = CFM.C_FKWHERE CFM.C_KEY = 'productLine' AND CFM.C_VALUE = 'Automotive'
Standard Lucene queries cannot directly filter by document-level custom fields. For complex document-level filtering, consider consolidating multiple RISKSHEETs into a single view with many-to-many relationships rather than using cross-document queries.
Empty or whitespace-only queries are ignored. If you want to load all work items of the specified type, omit the query property entirely rather than setting it to an empty string.
Document IDs with the _default/ prefix (default modules) have the prefix automatically stripped in queries. If your query references document IDs directly, account for this behavior.