Build an application with AI¶
AI coding assistants can write a Polarion Application for you, but they do not know Polarion Applications from their training: the framework is new in 2612. The AI kit gives them what they need. It contains this whole guide, the seven example applications and a set of instructions for the assistant, all in one folder that works offline.
Download the AI kit for Polarion 2612
Three steps¶
- Unzip the kit and open the folder in your AI coding assistant, for example Claude Code, GitHub Copilot in VS Code, or Cursor. The assistant reads
AGENTS.md(also provided asCLAUDE.mdand.github/copilot-instructions.md), which explains how Polarion Applications work and which rules they follow. - Paste the prompt below and replace the part in angle brackets with what you want: what the application shows or does, where it appears, and what it reads or changes.
- Upload the result. The assistant builds a ZIP file. Upload it in Global Administration → Applications and place it as the assistant describes, first on a test server. See Package and upload.
Read AGENTS.md in this folder and follow it. Then build a Polarion Application that <describe what it should show or do, where it should appear (on the work item form, next to the Work Items table, or as a page in the project navigation), and what it reads or changes>. Start from the closest example, build and package it, and tell me how to upload and place it.
The assistant needs Node.js 20.19 or newer (22.12 or newer on Node 22) to build the application; see Prerequisites. Your Polarion server needs Applications enabled and REST token authentication on; see Enable Applications in Polarion.
Example requests¶
Each of these replaces the part in angle brackets:
- a sidebar next to the Work Items table that shows the total initial estimate and the number of open items of the selected work items
- a panel on the work item form that lists the linked test cases with their last test result
- a page in the project navigation that shows how many requirements are in each status, as a bar chart
- a panel on the work item form with a button that copies the work item's title into its description, using an endpoint on the server
The more precise the request, the better the result: name the work item types, fields and link roles your project uses.
What is in the kit¶
| File or folder | For | Content |
|---|---|---|
START-HERE.html | you | These steps and the prompt, to open in a browser |
Guide.html | you | This guide as one page, readable offline |
AGENTS.md | the assistant | How to work, the view types, and the rules that a Polarion Application must follow: package layout, allowed file types, SDK, context, REST API and endpoints |
guide/ | the assistant | Every page of this guide as plain Markdown, and guide/ALL.md with all pages in one file |
examples/ | both | The sources of the seven examples and the SDK package |
The kit is generated from this guide and its examples whenever they change, so the download always matches the pages you are reading.
What to expect¶
- The assistant starts from the closest example and keeps its structure:
manifest.json, the React view insrc/, the packaging script, and server scripts when the application needs its own endpoints. - It cannot upload or test in Polarion. It tells you how to upload and place the application; whether it works, you check on the server. Describe what you see, including messages from the browser's developer console, and let the assistant fix it.
- Review what the application changes. An application acts with the rights of the user who opens it. Read the code that writes data before you use it on a production server, as you would for code from a colleague; see Security model.
- Bump the version for every update. Polarion recognizes the application by its identifier and accepts the same version again, so
applicationVersionis the only way to tell two builds apart (see Iterate). Ask the assistant to raise it when you change the application.