Prerequisites
- The Planningboard widget is embedded in a Polarion LiveDoc or Wiki page
- You have editor access to the widget’s Advanced Properties
1
Open the Item Script editor
- Open the Polarion page containing your Planningboard widget.
- Switch to Edit mode on the page.
- Click the widget to select it, then open its properties.
- Navigate to Advanced Properties and locate the Item Script field.
2
Set the fields displayed on the card
Assign an HTML string to The 
cli.fieldsLine to control what appears under the card title. You can render multiple fields and separate them with commas, spaces, or <br> line breaks.workitem.fields().get("fieldId") pattern accesses any standard or custom field by its Polarion field ID. Chain .render().htmlFor().forFrame() to produce the formatted HTML fragment.
3
Apply conditional logic by work item type
You can branch on any field value to render different content for different item types. The following example reads a custom enumeration field (
crType) and applies a distinct fields line and card color for a specific value:4
Inherit card color from a parent item
A common pattern is to color child cards based on a color value stored on their parent. This makes it easy to visually group items that belong to the same parent work item.Set up the custom field on the parent type:
- In Polarion Administration, add a custom field of type
Stringto the parent work item type. Name itpbColor(or any ID you choose). - For each parent item, enter a color value in this field:
blue,red,green,yellow, or any valid CSS hex code.
5
Adjust card title height using the Config Script
If your work item titles are long, they may be clipped at the default card height. You can increase the title area by injecting a CSS rule through the Config Script (a separate field in the same Advanced Properties section).

Available cli properties reference
The table below lists all cli properties available in the Item Script.
Card content flow
Limitations
Verification
Save the widget, exit Edit mode, and reload the board. You should now see:- The fields you specified in
cli.fieldsLineappearing under each card’s title - Any conditional background colors applied to matching cards
- Parent-color inheritance visible across child cards that have a populated
pbColorfield on the parent
See also
- Customize Card Appearance
- Customize Card Colors
- Highlight Work Items by Rules
- Item Scripts
- Config Scripts
- Widget Parameters Overview
Sources
Sources
KB Articles
- Customize the content of the card
- Planningboard interface & basic interactions
- Planningboard: Customizable Statistics and Capacity Indicators
PlanningBoardWidget.javalicenseReadonly.cy.tsviewLicense.vmConfig.javaPlanningBoardWidgetRenderer.java