Skip to main content

What you can change

The following appearance properties are available through the cli object in the Item Script: Card height is controlled separately via a CSS rule in the Config Script (see Adjust card height below).
1

Open the widget's Advanced Properties

  1. Open the Polarion Wiki page or LiveDoc that contains your Planningboard widget.
  2. Switch to Edit mode for the page.
  3. Click the widget to select it, then open its Widget Parameters.
  4. Scroll to the Advanced Properties section. You will find two script fields:
    • Item Script — runs once per card, controls per-item appearance.
    • Config Script — runs once when the board loads, used for board-wide CSS overrides.
Widget Advanced Properties section showing the Max Items, Card Height (set to 70), and Column Width fields
2

Set a card background color

Add the following to the Item Script to apply a fixed background color to every card:
To apply color conditionally based on a work item field value (for example, a custom crType enumeration field):
Named colors such as "blue" are supported, but HEX codes give you full control over shade and contrast. Pick values that remain legible against white card text.
3

Customize the fields line

The cli.fieldsLine property controls what appears under the card title. You can combine multiple rendered fields using the workitem.fields() rendering API:
If a custom field referenced with workitem.fields().get("fieldId") does not exist on the work item type, or has no value, the rendered output will be empty — and no error is shown. Verify field IDs match those configured in your Polarion project.
4

Inherit color from a parent item

A common pattern is to color child cards based on a color value set on their parent item. This groups related cards visually without manual per-item configuration.Prerequisites:
  • Create a custom field named pbColor (type: String) on the parent work item type (for example, on your System Requirement type).
  • Enter a color value (blue, red, green, yellow, or a HEX code) in this field for each parent item.
Item Script:
The script above uses the "implements" link role. If your project uses a different relationship name (for example "refines" or "derives"), replace "implements" with the correct link role ID. Wrong link role IDs cause no error — the color simply will not apply.
You can expand the color list to include arbitrary HEX values. Just add more else if branches or check pbColor.startsWith("#") to pass the value through directly.
5

Adjust card height

If your card titles are long, or if your cli.fieldsLine spans multiple lines, increase the card height using the Config Script:
Widget Advanced Properties panel with Card Height set to 100 (highlighted with an arrow) and the Config Script field containing the CSS style injection snippet
Set the title height slightly smaller than the Card Height widget parameter value to prevent content overflow. Use your browser’s developer tools (right-click a card → Inspect) to test height values in real time before committing a value.
Planningboard card showing a long work item title wrapping across multiple lines, with the full title visible after increasing card title height

Scripting API reference

The Item Script has access to three main objects:

Card appearance flow

Limitation: color by custom enumeration is not supported

Planningboard card coloring through the standard widget configuration is based on workflow status only. Coloring cards based on a custom enumeration field (such as a topic category or priority field) via point-and-click configuration is not currently supported. If you need enumeration-based coloring, use the Item Script approach described above: read the enum field with wi.getValue("fieldId"), then map the enum ID to a HEX color and assign it to cli.cardColor.
Users migrating from Nextedy Scrumboard may expect custom-enum card coloring to be available as a built-in configuration option. In Planningboard this requires an Item Script workaround. The built-in color configuration applies workflow status colors only.

Verification

Save the widget parameters and reload the board. You should now see:
  • Cards with the background color you configured (solid color or conditionally per item).
  • The fields line showing the fields you specified under each card title.
  • Cards with adjusted height if you added a Config Script CSS rule.
If colors or fields are not appearing, check: the Item Script for syntax errors (open the browser console), that all referenced field IDs exist on the work item type, and that the pbColor custom field is populated on parent items if you are using color inheritance.

See also

KB Articles
  • Customize the content of the card
  • Planningboard interface & basic interactions
  • Planningboard: Customizable Statistics and Capacity Indicators
Support TicketsSource Code
  • PlanningBoardWidget.java
  • licenseReadonly.cy.ts
  • Config.java
  • viewLicense.vm
  • PlanningBoardWidgetRenderer.java
Last modified on June 26, 2026