The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content

Navigation topic

2612

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.

A navigation topic page: the Project dashboard example

Declare the view

manifest.json (excerpt)
"views": {
  "navigationTopics": [
    {
      "identifier": "dashboard",
      "title": "Project dashboard",
      "icon": "icon30.png",
      "rootDirectory": "dashboard",
      "document": "index.html"
    }
  ]
}
FieldMeaning
titleLabel in the navigation panel and in the page header.
icon30 × 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).

  1. Open the project and go to Administration → Portal → Topics.
  2. Click the View you want to change (usually Default). The Topics Configuration XML opens.
  3. Add an applicationView element among the <topic> elements. Its position determines the position in the navigation panel.
  4. Click Save and reload the project.
Topics configuration
<?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 Topics configuration editor with an applicationView element

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 navigation panel with the Project dashboard topic between Monitor and the shortcuts

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.