Building Atlassian Forge Apps: A Developer's Starter Guide
Forge is Atlassian's cloud app platform. Your code runs on Atlassian-hosted infrastructure, so you don't manage servers, auth, or tenant isolation. It is now the recommended way to extend Jira, Confluence, and JSM in Cloud — and the way to build Rovo agents and actions.
Setup
npm install -g @forge/cli
forge login # uses an Atlassian API token
forge create # pick a template, e.g. Jira issue panel
cd my-app
forge deploy
forge install # install into your dev site
The Manifest
manifest.yml declares what your app does and what it can access:
modules:
jira:issuePanel:
- key: risk-panel
resource: main
resolver:
function: resolver
render: native
title: Risk Summary
function:
- key: resolver
handler: index.handler
resources:
- key: main
path: src/frontend/index.jsx
permissions:
scopes:
- read:jira-work
app:
runtime:
name: nodejs22.x
Scopes follow least privilege — only request what you need. Users see them on install.
UI Kit and Custom UI
- UI Kit — React-like components rendered natively by Atlassian; fast, consistent, secure
- Custom UI — your own React app in an iframe for full design control
Resolvers: Your Backend
import Resolver from '@forge/resolver';
import api, { route } from '@forge/api';
const resolver = new Resolver();
resolver.define('getLinkedCount', async ({ context }) => {
const key = context.extension.issue.key;
const res = await api.asUser().requestJira(route`/rest/api/3/issue/${key}?fields=issuelinks`);
const data = await res.json();
return data.fields.issuelinks.length;
});
export const handler = resolver.getDefinitions();
asUser() respects the current user's permissions; asApp() uses the app's own.
Storage, Triggers, Scheduling
- Forge storage / KVS for app data, plus SQL options for relational needs
- Triggers — react to events like issue created or page published
- Scheduled triggers — run jobs on an interval
- Async events — offload long work to queues
Dev Loop
forge tunnel— run code locally against your real site with hot reloadforge logs— view function logs- Use separate development, staging, and production environments
Good Practices
- Keep functions small; respect runtime and rate limits
- Handle API pagination and errors
- Never log personal data
- Use the Runs on Atlassian model where possible — it simplifies security reviews for customers
Forge removes the hosting work so you can focus on the workflow problem. Start with one small panel that saves your team a click a hundred times a day.