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

The extensibility framework

2612

Polarion Applications are the new extensibility framework of Polarion. An application is a self-contained package that adds functionality to Polarion: user interface that appears inside the Polarion UI, and server-side logic exposed as your own REST endpoints. You build it with standard web technology, package it as a ZIP, and an administrator installs it in Global Administration → Applications. No Java plug-in, no server file-system access, no restart.

Polarion 2612 ships the first generation of the framework as a preview. It is the foundation on which the next releases will deliver more: additional places in the UI where applications can appear, and additional kinds of content that an application can carry, such as scripts and templates. Applications are how Polarion is meant to be extended from now on.

What an application is

An application bundles three things:

PartWhat it isWhere it runs
ViewsWeb pages that Polarion shows in defined places of its UI: a panel in the work item form, a sidebar next to a table or document, a page in the project navigation.In the user's browser, inside the Polarion page
Your own REST endpointsHTTP endpoints under your application's URL, implemented as JavaScript that runs on the Polarion server with access to the Polarion Java API.On the Polarion server
Manifestmanifest.json: the identity of the application and the list of its views and endpoints.Read by Polarion on upload

Views and endpoints are both optional in principle, but together they are what makes an application rich: the view is the experience, the endpoints are the capability.

  • com.example.releasechecklist/
    • manifest.json
    • checklist/ a sidebar view (static web site)
      • index.html
      • assets/
        • …
    • server-scripts/ your REST endpoints
      • validate.js POST /polarion/apps/com.example.releasechecklist/rest/validate
      • assign-to-me.js POST /polarion/apps/com.example.releasechecklist/rest/assign-to-me

Two ways to work with Polarion data

From a view you can reach Polarion data in two ways, and most applications use both:

  1. The Polarion REST API. The complete, documented API of Polarion, called directly from the browser. The application receives an authentication token for the current user from the framework, so there is nothing to configure. Use it for everything it covers: reading and writing work items, documents, test runs, plans, users.
  2. Your own REST endpoints. When the REST API is not enough, you write the endpoint yourself. The script runs on the server, as the current user, with the full Polarion Java API. Aggregate across hundreds of objects in one request, implement rules and validations, talk to external systems with server-side secrets. The framework handles routing, authentication and JSON serialization.

The Polarion REST API and Your own REST endpoints sections cover both in depth. REST API or your own endpoints? helps you decide.

Where applications appear: views

The places in the Polarion UI that accept applications are called view types. Polarion 2612 provides three:

View typeWhere it appearsTypical use
Form extensionA panel in the Work Item form, positioned by the administrator in the form layout.Everything that is about the open work item: related data, visualizations, guided editing.
SidebarThe sidebar next to the Work Items table and inside Documents. Follows the user's selection.Inspectors, bulk actions, checks on the selected items.
Navigation topicA full page in the project navigation.Dashboards, reports, editors that need the whole screen.

More view types are planned, among them widgets for pages and reports and administration views. See Upcoming: widgets and administration.

A form extension rendered inside a work item

How a view talks to the framework

The view runs in an iframe inside the Polarion page. A small npm package, the Polarion Application SDK (polarion-app-sdk), connects it to the host: it tells the view which project, work item, document or selection it is embedded in, delivers events such as selection changed, and supplies the base URLs and the token for calling the REST API and your endpoints. See How an application works.

Who this guide is for

This guide assumes you have never seen a Polarion Application before. It expects that you can use a terminal, Node.js and npm, that you can write a small web page in JavaScript or TypeScript (the examples use React and Vite), and that you can log in to a Polarion 2612 server as an administrator or ask one for help with the installation steps. You do not need Java, the Polarion Java SDK, or knowledge of Polarion's internals.

How this differs from older extension options

OptionDeploymentLanguageWhere it runs
Polarion ApplicationZIP upload in AdministrationWeb technology + JavaScript endpointsBrowser iframe; endpoints on the server
Java plug-in (form extension, widget, servlet)Bundle copied to the server, restartJavaServer
Velocity / JavaScript custom panelsConfiguration XMLVelocity, HTMLServer-side rendering
External REST clientSeparate systemAnyOutside Polarion

Applications combine the reach of a plug-in (inside the UI, with server-side logic) with the deployment model of a web application. They are the recommended path for new extensions.

Where to go next

  • Your first application: from an empty folder to a panel in a work item in about thirty minutes.
  • Views: pick the place where your application should appear.
  • Your own REST endpoints: add server-side capability.
  • Examples: seven complete applications, from hello world to an endpoint-driven release checklist.