View configuration XML¶
Form extensions and navigation topics are placed with the applicationView element in Polarion's configuration XML. Sidebars need no XML.
Form layout (formLayout)¶
Location: Project Administration → Work Items → Form Configuration → Form Layouts → Edit (per work item type and Polarion View). Repository-level defaults: Global Administration → Work Items → Form Configuration.
<applicationView id="com.example.workitemcard.card" label="Work item card" height="640px"/>
| Attribute | Required | Description |
|---|---|---|
id | yes | <application identifier>.<view identifier> of a formExtensions view |
label | no | Heading of the panel. Default Polarion Application. |
height | no | CSS height of the iframe (320px, 50vh). |
Placement: a direct child of <formLayout>, in document order with <field>, <horizontal>, <vertical> and <extension> elements. Not allowed inside <section> or <panel>.
Full example:
<?xml version="1.0" encoding="UTF-8"?>
<formLayout xmlns="http://polarion.com/schema/WorkItems/FormLayout"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://polarion.com/schema/WorkItems/FormLayout">
<horizontal>
<vertical>
<section>
<field id="type"/>
<field id="severity"/>
<field id="author"/>
</section>
</vertical>
<vertical>
<section>
<field id="assignee"/>
<field id="priority"/>
<field id="status"/>
</section>
</vertical>
</horizontal>
<applicationView id="com.example.workitemcard.card" label="Work item card" height="640px"/>
<field id="description"/>
<applicationView id="com.example.traceability.tree" label="Traceability" height="480px"/>
<field id="comments"/>
<field id="linkedWorkItems"/>
<field id="attachments"/>
</formLayout>
Topics configuration (topics)¶
Location: Project Administration → Portal → Topics → (View). Repository-level defaults: Global Administration → Portal → Topics.
<applicationView id="com.example.dashboard.dashboard"/>
| Attribute | Required | Description |
|---|---|---|
id | yes | <application identifier>.<view identifier> of a navigationTopics view |
Placement: a direct child of <topics>, among <topic> elements. Order determines the position in the navigation panel.
<?xml version="1.0" encoding="UTF-8"?>
<topics xmlns="http://polarion.com/schema/Portal/Topics"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://polarion.com/schema/Portal/Topics">
<topic id="workitems"/>
<topic id="wiki"/>
<topic id="plans"/>
<topic id="testruns"/>
<topic id="collections"/>
<topic id="baselines"/>
<topic id="builds"/>
<topic id="reports"/>
<topic id="monitor"/>
<applicationView id="com.example.dashboard.dashboard"/>
<topic id="global_shortcuts"/>
<topic id="project_shortcuts"/>
<topic id="user_shortcuts"/>
</topics>
Sidebars¶
No XML. The sidebar is opened from the Show Sidebar menu and remembered in the page URL:
?sidebar=polarion-application.<application identifier>.<view identifier>
Example: /polarion/#/project/test/workitems?sidebar=polarion-application.com.example.selectionsidebar.selection
Validation¶
Polarion does not appear to validate the referenced application or view when saving the XML; a wrong id results in an empty or failing panel. Check Global Administration → Applications → Properties for the installed identifier and the manifest for the view identifier when a panel does not appear.