App Package Overview
An app package is the main unit for delivering custom functionality to YouTrack. It can contain one module or combine UI, automation, endpoints, configuration, and app-owned data.
App Package
Here is the file structure of a sample app package:

Here are the key components of the package:
The app manifest, a JSON file that is stored at the root level of the app package.
The custom schema for the app settings.
The definition for any extension properties used to store custom values for core YouTrack entities.
A
widgetsfolder that contains subfolders for each widget.The subfolder for an admin widget. This subfolder contains the
index.htmlfile and other supplementary files that are used by this widget.A JavaScript file that contains the script for an additional module.
App Data and Configuration
Apps can store local frontend state, work with ordinary YouTrack entities, and declare app-owned backend data. Choose a mechanism based on who needs the value, how long it must persist, and whether it contains a secret.
Mechanism | Scope and use | Important constraints |
|---|---|---|
Local UI state and caches shared by widgets from the same app in one browser. | Stores string keys and values asynchronously, with a 1 MB quota per app. It isn't tied to a YouTrack user account and isn't suitable for secrets or permission-protected data. | |
YouTrack entities | Issues, articles, projects, users, and other supported entities. | Access goes through the REST API or YouTrack JavaScript API and remains subject to the applicable permissions. |
App-owned mutable data associated with a supported YouTrack entity. | The app must declare each property in | |
App-owned mutable data that isn't associated with a regular YouTrack entity. | Declared as properties of | |
Administrator-provided global or project-level configuration, including credentials. | Declared in |
App Manifest
Each app package must include a manifest.json file at the root of the package directory. The manifest file provides general information about the app, such as the title, description, and the list of modules that this app includes.
To learn more about app manifests, see App Manifest.
App Settings
As an app developer, you have the option to provide a schema of custom settings for your app. The setting schema is described in a settings.json file. These settings are then accessible for configuration on the Settings tab of the app.
To learn more about custom settings for your app, see App Settings.
Extension Properties
Apps can extend core YouTrack entities with custom properties. We refer to these as extension properties. With extension properties, you can store custom values for core YouTrack entities. An app can then work with these custom properties and their values in its JavaScript-based modules.
Extension properties are declared in a dedicated file named entity-extensions.json. To define custom extension properties, add this file to the root level of the app package and declare each property inside the file.
To learn more, see Extension Properties.
Widgets
To add custom UI to YouTrack, you can create widgets. You can embed a widget in several supported locations in the YouTrack UI. For the complete list, see Extension Points for Widgets.
Here you can see an example of a widget as described in the manifest:
Here you can see a sample index.html file containing the source code for this widget:
JavaScript Modules
Each backend JavaScript file in an app is classified by the object it exports:
Export | Module |
|---|---|
| A workflow rule that automates YouTrack behavior. |
| An HTTP handler that provides app endpoints. |
| |
No recognized module export | A utility module imported by another backend file. |
Store each backend module in a separate .js file. Workflow rules in an app use the same rule constructors and JavaScript API as rules in a pure workflow.
For app-specific backend reference, see App Reference. For the shared backend API, see YouTrack JavaScript API.