Custom UI bridge
Custom UI Jira bridge

Rate this page:

Custom UI Jira bridge

The custom UI Jira bridge is a JavaScript API that enables custom UI apps to securely integrate with Jira.

Install the custom UI Jira bridge using the @forge/jira-bridge npm package. Import @forge/jira-bridge using a bundler, such as Webpack.

You can start by creating a new app from one of the custom UI templates. In the static/hello-world directory, run npm install && npm build to bundle the static web application template with the custom UI Jira bridge into the static/hello-world/build directory. Use this directory as the resource path in the Forge app's manifest.yml.

In the template, use the bridge in static/hello-world/src/App.js like this:

1
2
import { ViewIssueModal } from '@forge/jira-bridge';

const viewIssueModal = new ViewIssueModal({
  context: {
    issueKey: 'CS-15',
  },
});

viewIssueModal.open();

Rate this page: