The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content

Build an application with AI

2612

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.

Three steps

  1. 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 as CLAUDE.md and .github/copilot-instructions.md), which explains how Polarion Applications work and which rules they follow.
  2. 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.
  3. 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.
Prompt
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 folderForContent
START-HERE.htmlyouThese steps and the prompt, to open in a browser
Guide.htmlyouThis guide as one page, readable offline
AGENTS.mdthe assistantHow 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 assistantEvery page of this guide as plain Markdown, and guide/ALL.md with all pages in one file
examples/bothThe 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 in src/, 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 applicationVersion is the only way to tell two builds apart (see Iterate). Ask the assistant to raise it when you change the application.