Developer
Documentation
Resources
Get Support
Sign in
Developer
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Developer
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Automation modules
Bitbucket modules
Common modules
Compass modules
Confluence modules
Dashboard modules (EAP)
Jira modules
Jira Service Management modules
Jira Software modules
Rovo modules
Teamwork Graph modules
Last updated Aug 26, 2025

Dashboard background script (EAP)

Dashboard Background Script module (EAP)

The dashboard background script module allows you to run background processes that can:

  • Distribute shared data across dashboard widgets
  • Perform heavy calculations
  • Handle optimizations and data processing
  • Communicate with dashboard widgets through events

Unlike dashboard widgets, the background script is not influenced by dashboard page navigation changes, making it perfect for persistent operations.

Setup Instructions

You can create a dashboard widget with background script app with the following steps:

  1. Run forge create and follow the prompts, selecting the templates under Dashboards (EAP).
  2. Run forge deploy to deploy the app.
  3. Run forge install and follow the prompts to install the app to Jira context (even though it is only available in Atlassian Home).
  4. Once the app is installed, navigate to your Atlassian site and go to the Dashboards section in Atlassian Home.
  5. Click "Add widget" and find your widget in the Marketplace widget list.
  6. Add your widget to the dashboard to see it in action.

Examples

Use the events API for communication between dashboard background scripts and dashboard widgets.

Basic Background Script

1
2
import { 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");
});

Dashboard Widget Communication

1
2
import { 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);
});

Manifest

1
2
modules:
  dashboards:backgroundScript:
    - key: dashboard-bg-script
      resource: dashBgScriptResource
      render: native

resources:
  - key: dashBgScriptResource
    path: static/dashboard-bg-script/build

Properties

PropertyTypeRequiredDescription
keystringYesA key for the module, which other modules can refer to. Must be unique within the manifest.
resourcestringYesThe key of a static resources entry that provides the background script implementation.
render'native'YesIndicates the background script uses native rendering.

Extension Data

The background script receives context information about the dashboard environment and can access various APIs for data processing and communication.

Complete examples

For complete implementation examples, refer to the Forge sample apps repository once the EAP is fully available.

UI Kit Background Script

When using UI Kit for your background script implementation, ensure you're using the latest version that supports the dashboard features.

Rate this page: