This Polarion extension provides possibility to edit JSON files as WorkItem attachments.
This extension can be produced using maven:
mvn clean package
To install the extension to Polarion ch.sbb.polarion.extension.json-editor-<version>.jar
should be copied to <polarion_home>/polarion/extensions/ch.sbb.polarion.extension.json-editor/eclipse/plugins
It can be done manually or automated using maven build:
mvn clean install -P install-to-local-polarion
For automated installation with maven env variable POLARION_HOME
should be defined and point to folder where Polarion is installed.
Changes only take effect after restart of Polarion.
- Open a project which WorkItem pages should display the editor
- On the top of the project's navigation pane click ⚙ (Actions) ➙ 🔧 Administration. Project's administration page will be opened.
- On the administration's navigation pane select Work Items ➙ Form Configuration.
- On the form configuration page you will see 2 sections: Form Filters and Form Layouts.
- In the table of Form Layouts section find line with WorkItem's type where editor should appear and click 📝 Edit
- In opened Form Layout Configuration editor find a line with code:
… <field id="description"/> …
- Insert following new line after it (with explicit syntax validation on submit):
Or following new line after it (without syntax validation on submit):
… <extension id="json-editor" label="JSON Editor" validateOnSave="true"/> …
… <extension id="json-editor" label="JSON Editor" validateOnSave="false"/> …
- Save changes by clicking 💾 Save
This extension provides REST API. OpenAPI Specification can be obtained here.