Display a Work Item Field as Right-Side Text
To show a field value next to each task bar, you need two scripts: an Item Script to prepare the data and a Gantt Config Script to render it.Step 1: Prepare the data with Item Script
Navigate to Widget Properties > Advanced > Item Script and add a script that extracts the field you want to display. For example, to show the owner name next to Epic work items:task.getFields().put(KEY, VALUE). For example, to show multiple assignees:
Step 2: Configure the rendering template
Navigate to Widget Properties > Advanced > Gantt Config Script and define therightside_text template:
Show Progress as Right-Side Text
To display a progress percentage next to each task bar, combine the Item Script and Gantt Config Script: Item Script (calculates progress from time tracking fields):Show Only Status Icon
To display just the work item status icon instead of text, use this Gantt Config Script:Style the Right-Side Text with CSS
To adjust the color, size, and positioning of right-side text, add a Script - block widget to the same page as your Gantt chart with CSS:- Positioning: Modify
topandbottomto adjust vertical alignment - Appearance: Customize
colorandfont-sizeto match your style
Verification
You should now see the configured field value displayed as text to the right of each task bar. If you styled the text with CSS, verify the color and positioning match your expectations.See also
- Configure Item Colors
- Customize Text Inside Task Bars
- Write Gantt Config Scripts
- Write Item Scripts
- Apply Custom CSS to the Gantt Widget
Sources
Sources
KB Articles
- Adjust the right-side text properties
- API Example: Compute Plan Progress for Plans GANTT on the Server Using API
- Calculate Epic Progress
- How to change text on right?
prod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/taskline/rightside-text.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/gantt-Item-Progress.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/config.jsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Config.javaprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/view/SquareBorders.cy.ts