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

manifest.json

2612

manifest.json sits at the root of the application folder inside the ZIP. Polarion reads it during upload and whenever it needs to serve or place a view.

Complete example

manifest.json
{
  "manifestVersion": "1.0",
  "identifier": "com.example.inspector",
  "title": "Work item inspector",
  "description": "Shows details and links of the selected work items.",
  "publisherName": "Example Publisher",
  "applicationVersion": "1.2.0",
  "views": {
    "formExtensions": [
      {
        "identifier": "card",
        "title": "Inspector",
        "rootDirectory": "card",
        "document": "index.html"
      }
    ],
    "sidebars": [
      {
        "identifier": "sidebar",
        "title": "Inspector",
        "rootDirectory": "sidebar",
        "document": "index.html",
        "menuIcon": "icon16.png",
        "icon": "icon32.png"
      }
    ],
    "navigationTopics": [
      {
        "identifier": "overview",
        "title": "Inspector overview",
        "icon": "icon30.png",
        "rootDirectory": "overview",
        "document": "index.html"
      }
    ]
  },
  "serverScripts": {
    "endpoints": [
      { "urlPath": "linked-tree", "method": "GET", "script": "linked-tree.js" },
      { "urlPath": "add-comment", "method": "POST", "script": "add-comment.js" }
    ]
  }
}

Top-level fields

FieldTypeRequiredDescription
manifestVersionstringyesVersion of the manifest format. "1.0" in Polarion 2612.
identifierstringyesUnique identifier of the application on the server. Must equal the name of the top-level folder in the ZIP. Used in URLs (/polarion/apps/<identifier>/) and as the prefix of every configuration id. Reverse-DNS style recommended.
titlestringyesHuman-readable name. Shown on the Applications tile, in the upload dialog and in Properties.
descriptionstringnoLonger text. Shown as the tile tooltip and in Properties.
publisherNamestringyesOrganization or team that publishes the application. Shown in the upload dialog and in Properties as Publisher.
applicationVersionstringyesFree-form version string. Shown in the upload dialog (and compared visually with the installed version on update) and in Properties. Not parsed.
viewsobjectyesThe views of the application. See below. At least one view is expected.
serverScriptsobjectnoEndpoints backed by server scripts. See below.

views

views is an object with up to three arrays. Each array may be empty or omitted.

KeyView typePlaced by
formExtensionsPanel in the Work Item form<applicationView> in the form layout
sidebarsSidebar next to the Work Items table and in DocumentsNothing; listed in Show Sidebar automatically
navigationTopicsPage in the project navigation<applicationView> in the Topics configuration

Common view fields

FieldTypeRequiredDescription
identifierstringyesId of the view, unique within the application. Combined with the application identifier into the configuration id <identifier>.<viewId> and the view URL /polarion/apps/<identifier>/views/<viewId>.
titlestringyesDisplay name. Used as the menu label for sidebars and the navigation label for topics. For form extensions the panel heading comes from the layout's label attribute instead.
rootDirectorystringyesFolder inside the application folder that holds the view's files. One path segment, no slashes. Several views may share one folder (verified on Polarion 2612); the Application context example serves a form extension, a sidebar and a navigation topic from one.
documentstringyesEntry file inside rootDirectory, usually index.html.

Additional fields per view type

FieldApplies toDescription
menuIconsidebars16 × 16 px image shown in the Show Sidebar menu. Path relative to rootDirectory.
iconsidebars, navigationTopicsImage shown in the sidebar header (32 × 32 px) or the navigation panel (30 × 30 px, like Polarion's own topic icons). Path relative to rootDirectory. Accepted on formExtensions but apparently not displayed in 2612.

serverScripts.endpoints

An array of endpoint definitions. Each endpoint maps an HTTP method and path to a script file.

FieldTypeRequiredDescription
urlPathstringyesLast path segment of the endpoint URL: /polarion/apps/<identifier>/rest/<urlPath>. Letters, digits and hyphens. Unique per method.
method"GET" | "POST"yesHTTP method the endpoint accepts. GET reads parameters from the query string; POST from a JSON body.
scriptstringyesFile name inside server-scripts/.

The runtime available to scripts is described in Server script runtime.

Validation rules

  • identifier, title, publisherName, applicationVersion and every view identifier must be non-empty.
  • Every rootDirectory must exist in the package and contain document.
  • Every script must exist in server-scripts/.
  • The top-level folder name must equal identifier.
  • The file must be strict JSON (no comments, no trailing commas).

Violations are reported in the upload dialog as Application validation failed with a message, or as Application's zip structure is incorrect for layout problems.

Minimal manifest

{
  "manifestVersion": "1.0",
  "identifier": "com.example.hello",
  "title": "Hello Polarion",
  "publisherName": "Example Publisher",
  "applicationVersion": "0.1.0",
  "views": {
    "formExtensions": [
      { "identifier": "hello", "title": "Hello Polarion", "rootDirectory": "hello", "document": "index.html" }
    ]
  }
}