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

Sidebar

2612

A sidebar is a view shown in the sidebar area of the Work Items table and of Documents, alongside Polarion's own sidebars such as Approvals and Planning. Sidebars are the right place for anything that reacts to the user's selection.

The Show Sidebar menu with an application sidebar entry

Declare the view

manifest.json (excerpt)
"views": {
  "sidebars": [
    {
      "identifier": "selection",
      "title": "Selection inspector",
      "rootDirectory": "selection",
      "document": "index.html",
      "menuIcon": "icon16.png",
      "icon": "icon32.png"
    }
  ]
}
FieldMeaning
titleLabel in the Show Sidebar menu and in the sidebar header.
menuIcon16 × 16 px image shown in the menu. Path relative to rootDirectory.
icon32 × 32 px image shown in the sidebar header.

Put the icons in public/ of the Vite project so that they end up at the root of the view folder. The examples use PNG with transparency (verified); the menu draws the 16 px icon on a light background and the sidebar header draws the 32 px icon on dark navy, so avoid icons that rely on one background color.

No configuration needed

Sidebars are not placed with XML. As soon as the application is uploaded, every sidebar it declares is offered in the Show Sidebar menu of every project. Users open it with one click; Polarion keeps it open while they navigate the table.

Planned: sidebar configuration

This applies to Polarion 2612. Configuration for sidebars is planned for Polarion 2706.

The open sidebar is part of the URL, so links and bookmarks can include it:

https://<host>/polarion/#/project/test/workitems?sidebar=polarion-application.com.example.selectionsidebar.selection

An application sidebar opened next to the Work Items table

Context and events

On open, fetchContext() returns projectId; inside a Document also spaceId and documentId. The selection is not in the context: selectedWorkItemIds is empty in sidebars on Polarion 2612. Subscribe to selection-changed to learn what is selected; see React to selection changes.

Design for the column

  • The sidebar is roughly 300 px wide and as tall as the page. Lay out a single column; use the full height for lists.
  • Keep the header short; the sidebar already shows your title and icon.
  • Prefer compact typography (13 px) and chips over tables.
  • The iframe fills the sidebar; make html, body { height: 100% } and scroll inside the view if needed.

Typical uses

  • Inspect the selected items (fields, links, test status) without opening them.
  • Bulk actions through the REST API: set a field on all selected items, add them to a plan.
  • Validation summaries: run checks on the selection and list findings.
  • Context from other systems: show the CI status, the ticket in another tool, the specification page.

Removing

Delete the application, or remove the view from the manifest and re-upload. The entry disappears from the menu; users who had it open see an empty sidebar until they choose another one.