manifest.json¶
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¶
| Field | Type | Required | Description |
|---|---|---|---|
manifestVersion | string | yes | Version of the manifest format. "1.0" in Polarion 2612. |
identifier | string | yes | Unique 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. |
title | string | yes | Human-readable name. Shown on the Applications tile, in the upload dialog and in Properties. |
description | string | no | Longer text. Shown as the tile tooltip and in Properties. |
publisherName | string | yes | Organization or team that publishes the application. Shown in the upload dialog and in Properties as Publisher. |
applicationVersion | string | yes | Free-form version string. Shown in the upload dialog (and compared visually with the installed version on update) and in Properties. Not parsed. |
views | object | yes | The views of the application. See below. At least one view is expected. |
serverScripts | object | no | Endpoints backed by server scripts. See below. |
views¶
views is an object with up to three arrays. Each array may be empty or omitted.
| Key | View type | Placed by |
|---|---|---|
formExtensions | Panel in the Work Item form | <applicationView> in the form layout |
sidebars | Sidebar next to the Work Items table and in Documents | Nothing; listed in Show Sidebar automatically |
navigationTopics | Page in the project navigation | <applicationView> in the Topics configuration |
Common view fields¶
| Field | Type | Required | Description |
|---|---|---|---|
identifier | string | yes | Id 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>. |
title | string | yes | Display 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. |
rootDirectory | string | yes | Folder 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. |
document | string | yes | Entry file inside rootDirectory, usually index.html. |
Additional fields per view type¶
| Field | Applies to | Description |
|---|---|---|
menuIcon | sidebars | 16 × 16 px image shown in the Show Sidebar menu. Path relative to rootDirectory. |
icon | sidebars, navigationTopics | Image 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.
| Field | Type | Required | Description |
|---|---|---|---|
urlPath | string | yes | Last path segment of the endpoint URL: /polarion/apps/<identifier>/rest/<urlPath>. Letters, digits and hyphens. Unique per method. |
method | "GET" | "POST" | yes | HTTP method the endpoint accepts. GET reads parameters from the query string; POST from a JSON body. |
script | string | yes | File name inside server-scripts/. |
The runtime available to scripts is described in Server script runtime.
Validation rules¶
identifier,title,publisherName,applicationVersionand every viewidentifiermust be non-empty.- Every
rootDirectorymust exist in the package and containdocument. - Every
scriptmust exist inserver-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" }
]
}
}