Enable Work Item-Based Reviews
Add the following configuration to yourrisksheet.json file:
Configuration Properties
Mandatory Properties
| Property | Description | Example |
|---|---|---|
linkTypes | Polarion work item type ID for review items | "review" or "reviewTask" |
linkRole | Link role name connecting reviews to risk items | "review_link" or "reviews" |
Optional Properties
| Property | Description | Example |
|---|---|---|
query | Lucene query to filter displayed reviews | "NOT status:closed" or "status:open OR status:in_review" |
document | Target document for review work items (SPACE/DOC format) | "ACC/ReviewDoc" |
project | Target project for review work items | "safety_project" |
itemTemplate | Velocity template for custom review rendering | See template examples below |
How Work Item-Based Reviews Work
- 📄 A new work item is created (type specified by
linkTypes) - The review work item is linked to the risk item (using
linkRole) - The review is stored in the specified
documentorproject - • The review appears in RISKSHEET according to
itemTemplate
Custom Review Templates
Default Template
If noitemTemplate is specified, reviews display:
- Work item ID (as clickable hyperlink)
- Author name
- Creation timestamp
- Title (if different from description)
- Description (HTML-rendered)
Custom Template Example
Query Filtering
Use thequery property to control which reviews appear in RISKSHEET:
Cross-Project Reviews
Store reviews in a different project than the risk items:Add a Review Display Column
Add a column to display reviews:reviewsRendered binding retrieves linked review work items, applies the query filter, and renders them using itemTemplate.
Verify Your Configuration
- Save your
risksheet.jsonconfiguration with requiredlinkTypesandlinkRole - Refresh your RISKSHEET page
- Create a test review for a risk item
- Verify in Polarion:
- A new work item of type
linkTypeswas created - The work item is linked to the risk item via
linkRole - The work item appears in the specified
documentorproject
- A new work item of type
- Return to RISKSHEET and confirm the review displays in the review column
itemTemplate, with filtering applied based on your query expression.
See Also
- Set Up Review Process — Overview of review configuration options
- Configure Comment-Based Reviews — Lightweight review alternative
- Configure Approval-Based Reviews — Approval workflow integration
- Manage Cross-Project Reviews — Cross-project review scenarios
- Review Workflows — Conceptual overview of review systems
Sources
Sources
KB ArticlesSource Code
WorkItemBasedReview.javaIReview.javaAppConfig.tsSystemConsts.javaCommentBasedReview.java