Default Text Rendering
By default, each task bar displays the work item ID and title as its label (thetext property). The task bar also renders a progress fill bar showing the completion percentage. Optionally, a right-side text label can display additional information such as status or remaining estimate.
1
Configure Right-Side Text
The right-side text displays a label to the right of each task bar. Configure it using the This displays the work item status next to each task bar. You can display any field that you populate in the Item Script.
rightside_text template in the Gantt Config Script:2
Adjust Right-Side Text Styling
To customize the appearance (color, font size, position) of the right-side text, add a Script block widget to the page containing your Gantt chart with the following CSS:
- Positioning: Adjust the
topandbottomvalues to control vertical alignment relative to the task bar. - Appearance: Set
colorandfont-sizeto match your visual preferences.
3
Adjust Task Bar and Row Height for Text Visibility
If text appears crowded inside task bars, increase the row and task heights. Add the following to the Gantt Config Script:
4
Populate Custom Fields for Display
To show custom work item fields in the task bar text or right-side labels, first extract them in the Item Script:Then reference those fields in the Gantt Config Script templates as
task.fields.remainingEstimate or task.fields.priorityLabel.