- TypeScript 66.9%
- Java 23%
- CSS 4.8%
- JavaScript 4%
- HTML 1.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github | ||
| .idea/codeStyles | ||
| .mvn | ||
| docs | ||
| src | ||
| ui | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| .yamlfix.toml | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| CODING_STANDARDS.md | ||
| CONTRIBUTING.md | ||
| DCO | ||
| DEVELOPMENT.md | ||
| LICENSE | ||
| lombok.config | ||
| NOTICE | ||
| pom.xml | ||
| README.md | ||
| redocly.yaml | ||
| RELEASE.md | ||
| renovate.json | ||
| zizmor.yml | ||
JSON Editor Extension for Polarion ALM
This Polarion extension provides possibility to edit JSON files as WorkItem or Document attachments.
Important
Starting from version 2.0.0 only latest version of Polarion is supported. Right now it is Polarion 2612.
Quick start
The latest version of the extension can be downloaded from the releases page and installed to Polarion instance without necessity to be compiled from the sources.
The extension should be copied to <polarion_home>/polarion/extensions/ch.sbb.polarion.extension.json-editor/eclipse/plugins and changes will take effect after Polarion restart.
Important
Don't forget to clear
<polarion_home>/data/workspace/.configfolder after extension installation/update to make it work properly.
Build
This extension can be produced using maven:
mvn clean package
Installation to Polarion
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 local-install-into-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.
Polarion configuration
JSON editor to appear on a WorkItem page
- 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
JSON editor to appear on a Document's properties pane
- Open a project which Documents 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 Documents & Pages ➙ Document Properties Sidebar.
- In opened Edit Project Configuration editor find
sections-element:… <sections> <section id="fields"/> … </sections> … - And insert following new line inside this element:
…
<extension id="json-editor" label="JSON Editor" validateOnSave="true"/>
…
Or following new line after it (without syntax validation on submit):
…
<extension id="json-editor" label="JSON Editor" validateOnSave="false"/>
…
- Save changes by clicking 💾 Save
REST API
This extension provides REST API. OpenAPI Specification can be obtained here.