Forge's EAP offers experimental features to selected users for testing and feedback purposes. These features are unsupported and not recommended for use in production environments. They are also subject to change without notice. For more details, see Forge EAP, Preview, and GA.
To participate, you can sign up for the EAP here.
Note: You must also opt-in to the open beta of Dashboards in Atlassian Home. See the guide on how to opt-in.
The dashboard background script module allows you to run background processes that can:
Unlike dashboard widgets, the background script is not influenced by dashboard page navigation changes, making it perfect for persistent operations.
You can create a dashboard widget with background script app with the following steps:
forge create
and follow the prompts, selecting the templates under Dashboards (EAP).forge deploy
to deploy the app.forge install
and follow the prompts to install the app to Jira context (even though it is only available in Atlassian Home).Use the events API for communication between dashboard background scripts and dashboard widgets.
1 2import { events } from "@forge/bridge"; // Emit data to already rendered dashboard widgets events.emit("app.data-change", "initial-data"); // Listen to data change requests from dashboard widgets events.on("app.request-data", (payload) => { events.emit("app.data-change", "initial-or-changed-data"); });
1 2import { events } from "@forge/bridge"; // Request data in case the background script is already rendered events.emit("app.request-data"); // Listen to data changes events.on("app.data-change", (payload) => { console.log("The data has changed:", payload); });
1 2modules: dashboards:backgroundScript: - key: dashboard-bg-script resource: dashBgScriptResource render: native resources: - key: dashBgScriptResource path: static/dashboard-bg-script/build
Property | Type | Required | Description |
---|---|---|---|
key | string | Yes | A key for the module, which other modules can refer to. Must be unique within the manifest. |
resource | string | Yes | The key of a static resources entry that provides the background script implementation. |
render | 'native' | Yes | Indicates the background script uses native rendering. |
The background script receives context information about the dashboard environment and can access various APIs for data processing and communication.
For complete implementation examples, refer to the Forge sample apps repository once the EAP is fully available.
When using UI Kit for your background script implementation, ensure you're using the latest version that supports the dashboard features.
Rate this page: