Navigation topic¶
A navigation topic is a full page of your own in a project. It gets an entry in the navigation panel on the left, with your icon and title, and the whole content area when opened.
Declare the view¶
"views": {
"navigationTopics": [
{
"identifier": "dashboard",
"title": "Project dashboard",
"icon": "icon30.png",
"rootDirectory": "dashboard",
"document": "index.html"
}
]
}
| Field | Meaning |
|---|---|
title | Label in the navigation panel and in the page header. |
icon | 30 × 30 px image shown in the navigation panel, the size of Polarion's own topic icons (the image is rendered at its natural size). Path relative to rootDirectory. The panel background is dark navy; use a PNG with transparency and light or saturated colors. |
Add it to the navigation¶
Topics are configured per project and per Polarion View (hat).
- Open the project and go to Administration → Portal → Topics.
- Click the View you want to change (usually Default). The Topics Configuration XML opens.
- Add an
applicationViewelement among the<topic>elements. Its position determines the position in the navigation panel. - Click Save and reload the project.
<?xml version="1.0" encoding="UTF-8"?>
<topics xmlns="http://polarion.com/schema/Portal/Topics" …>
<topic id="workitems"/>
<topic id="wiki"/>
<topic id="plans"/>
<topic id="testruns"/>
<topic id="reports"/>
<applicationView id="com.example.dashboard.dashboard"/>
<topic id="global_shortcuts"/>
<topic id="project_shortcuts"/>
<topic id="user_shortcuts"/>
</topics>
The id is <application identifier>.<view identifier>. There are no other attributes; the title and icon come from the manifest. The topic appears at the configured position in the navigation panel, and its page has a stable URL built from the same id:
https://<host>/polarion/#/project/<projectId>/<application identifier>.<view identifier>
The same configuration also exists at repository level (Global Administration → Portal → Topics) as the default for projects without their own configuration.
Context in a navigation topic¶
{
"applicationId": "com.example.dashboard",
"viewId": "dashboard",
"projectId": "test",
"selectedWorkItemIds": [],
"appEndpoint": "…/polarion/apps/com.example.dashboard/rest",
"restBaseUrl": "…/polarion/rest/v1",
"restToken": "…"
}
Only the project is known. Everything else the page needs comes from the REST API or from server scripts. There are no events.
Linking into Polarion¶
A dashboard usually links to work items, documents or plans. Build the URLs from the context and open them in the top window so that the whole Polarion UI navigates:
<a href={`${window.location.origin}/polarion/#/project/${projectId}/workitem?id=${id}`} target="_top">
Without target="_top" the link would load inside your iframe.
Design notes¶
- The content area is wide; a max-width of about 1200 px with a centered layout reads better than full-bleed text.
- Give the page a header with the project id, the data time stamp and a refresh control; users expect dashboards to tell them how fresh they are.
- Large queries should be paged or aggregated on the server with a server script.
Removing¶
Delete the applicationView element from the Topics configuration and save. The navigation entry disappears immediately.


