Level 1 · Lesson 1
Create the app
Level 1 · Lesson 1Goal of this lesson
Create a Forge app from the Jira issue panel template, deploy it, install it on your developer site and see its panel on the BMW 3 Series repair task.
By the end of this lesson every work item in Jira can show a small panel that says hello. It is the template’s panel, untouched; the rest of Level 1 turns it into the car details card. First, watch the journey the code takes from your laptop to Jira.
See this on the home chart, in the steps that pack, deploy and install the app.
Step 1: Create the app from a template
Locked until the step before it is done.
Lives on your laptop
Template (forge create)
forge create registers a new app with Atlassian and copies a working starter into a new folder. You pick the starter by product and module. The rest of the course changes that folder; you never start from a blank file.
Further reading, optional: Atlassian docs on forge create (opens in a new tab)
In your terminal, move to the folder where you want the app to live: type cd (change directory), a space, then the folder’s path, for example cd ~/projects, and press Enter. In a codespace or a container, the terminal already opens in the workspace folder, so you can stay there. Then run:
forge createIt first asks a few questions; answer the prompts:
- Developer Space: the place in your Atlassian account where the apps you create are kept, so you can manage them later. Pick yours, or let the CLI create one; any name works.
- App name:
Workshop helper, or any plain name you like. The CLI makes the folder name from it:Workshop-helper. - Terms: read the Developer Terms and the Privacy Policy, then accept them. The same agreement says that if an app in your Developer Space goes over the free usage allowance, the extra is billed. A small practice app like this one normally stays within the free allowance.
- Template: choose Jira, then UI Kit, then jira-issue-panel.
✔ Select an Atlassian app or platform tool: Jira
✔ Select a category: UI Kit
? Select a template: (Use arrow keys)
jira-admin-page
jira-global-page
❯ jira-issue-panel
jira-project-page
After the last answer it works on its own for a few minutes, with a spinner: it is slowest at Installing dependencies, where it downloads the ready-made code packages the app uses. In a codespace that can take three or four minutes. Leave it alone, even if nothing seems to move, until you see ✔ Created Workshop helper and the prompt comes back. If you stop it halfway with Ctrl+C, you are left with a half-made folder. It may also print a line starting Building with a team? about the Developer Console: you can ignore it.
$ forge create ? Select or create a Developer Space: my-developer-space ✔ You are contributing to this Developer Space: my-developer-space. ? Enter a name for your app: Workshop helper ? Do you accept? Yes ✔ Terms accepted. Continuing with app creation... ? Select an Atlassian app or platform tool: Jira ? Select a category: UI Kit ? Select a template: jira-issue-panel ℹ Downloading template ℹ Registering app ℹ Creating environments ℹ Installing dependencies ✔ Created Workshop helper Your app is ready to work on, deploy, and install. We created 3 environments you can deploy to: production, staging, development. Change to directory Workshop-helper to see your app files.
Stuck?2 common problems, and their fixes
“Make sure you’re in the top-level directory of your app” or “Command failed due to validation error”
Open in the FAQThe terminal is not in your app folder, so the command can’t find
manifest.yml. This happens most often in a codespace: every new terminal, and the codespace after it restarts, opens in the workspace folder (/workspaces/forge-cloud-workspace), one level above your app. The end of the error line,manifest-file-required, says the same thing.Move into the app folder and run the command again:
RunTerminal cd Workshop-helper forge deployThe prompt in the terminal shows where you are: it should end in
Workshop-helper. If you gave your app another name, use that folder’s name instead.The CLI says it is out of date, or forge tunnel mentions ngrok
Open in the FAQOlder CLI versions used a separate tool called ngrok for the tunnel; current versions do not need it. Update the CLI and check the version:
RunTerminal npm install -g @forge/cli@latest forge --version
Step 2: Look at what the template made
Locked until the step before it is done.
Look inside the new folder in your editor. In VS Code, open the Explorer list on the left (the icon of two sheets of paper at the top of the left edge), then select the small arrow next to Workshop-helper, and next to src, to see the files. Don’t use File › Open Folder: in a codespace that reloads the whole window.
Workshop-helper
├── manifest.yml
├── package.json
├── node_modules/
└── src
├── index.js
├── frontend
│ └── index.jsx
└── resolvers
└── index.jsThe template may add a README or an AGENTS.md file too; they are notes, not code. node_modules holds the ready-made code packages the app downloaded; you never change it. Four files matter, and they are the same four the home page walks through clue by clue in How the files connect:
src/frontend/index.jsx, the card people see in Jiramanifest.yml, the app’s description of itselfsrc/index.js, the file that passes the work onsrc/resolvers/index.js, the code that answers
Every command from now on runs inside this folder:
cd Workshop-helperEvery forge command needs to be run from here, because it looks for manifest.yml in the folder you are in. In a codespace, a new terminal, or the codespace after it restarts, opens one level up, in the workspace folder. If a command says make sure you’re in the top-level directory of your app, run cd Workshop-helper and try again. The terminal’s prompt shows where you are: it should end in Workshop-helper.
/workspaces/forge-cloud-workspace $ forge deploy
Error: … make sure you're in the top-level directory of your app
/workspaces/forge-cloud-workspace $ cd Workshop-helper
/workspaces/forge-cloud-workspace/Workshop-helper $
Step 3: Deploy the app
Locked until the step before it is done.
See this on the home chart, in the step that deploys the app.
Deploy it without changing anything. This uploads the code and the manifest as the first version of the app, in the development environment. It takes up to a minute.
forge deploy$ forge deploy Deploying your app to the development environment. Running forge lint... No issues found. ✔ Deploying Workshop helper to development... ℹ Packaging app files ℹ Uploading app ℹ Validating manifest ℹ Deploying to environment ✔ Deployed Deployed Workshop helper to the development environment.
The CLI may print a few extra hint lines, for example that your app is eligible for the Runs on Atlassian program, or You’ll need an Atlassian site to install and test your app. Run forge site provision…. They are information, not errors; what matters is the line that says the app was deployed. The site hint shows up on every deploy, even after the app is installed: ignore it if you already have your developer site from the setup.
Stuck?2 common problems, and their fixes
“Make sure you’re in the top-level directory of your app” or “Command failed due to validation error”
Open in the FAQThe terminal is not in your app folder, so the command can’t find
manifest.yml. This happens most often in a codespace: every new terminal, and the codespace after it restarts, opens in the workspace folder (/workspaces/forge-cloud-workspace), one level above your app. The end of the error line,manifest-file-required, says the same thing.Move into the app folder and run the command again:
RunTerminal cd Workshop-helper forge deployThe prompt in the terminal shows where you are: it should end in
Workshop-helper. If you gave your app another name, use that folder’s name instead.“Unable to get local issuer certificate”
Open in the FAQA VPN or company proxy is reading your secure (HTTPS) connections on their way out, and Node does not trust the certificate it uses to do that. Disconnect the VPN and try again. If your company needs a proxy, set it for npm with the values from your IT team:
RunTerminal npm config set proxy http://proxy.example.com:8080 npm config set https-proxy http://proxy.example.com:8080
Step 4: Install it on your developer site
Locked until the step before it is done.
See this on the home chart, in the step that installs the app on your site.
forge install- Choose Jira.
- Type your developer site’s address, such as
your-name.atlassian.net. - Confirm.
Only a site admin can install apps; on your own developer site, that is you.
If your developer site is a demo site you created with forge site provision in the setup, you can run forge install --demo-site instead, and the CLI picks that site for you. If you have no demo site, the CLI says so in a green hint line; just use forge install as above.
The CLI then shows a warning that you are about to install a development app to a production site, and asks Are you sure you want to proceed? That is expected when you install the development version of your app on your own practice site, so answer Yes. (On a site your company uses, you would answer no.)
You install once per site and product; every later deploy reaches the site by itself.
$ forge install ? Select an Atlassian app or platform tool: Jira ? Enter the site URL: your-name.atlassian.net ? Do you want to continue? Yes WARNING: You are about to install a development app to a production site. … ? Are you sure you want to proceed? Yes ✔ Install in Jira complete! Your app in the development environment is now installed in Jira on your-name.atlassian.net.
Stuck?4 common problems, and their fixes
forge installsays the app is “already installed … status COMPLETED”Open in the FAQGood news, even though it is red and says Error: the app is already on that site, so there is nothing to install. The CLI then tells you to run
forge installagain, but that would fail the same way; don’t. You install once per site and product, and every laterforge deployreaches the site by itself. If a lesson asks you to install, tick the step and carry on. Only when a deploy adds new permissions do you runforge install --upgrade, and the lesson says when.forge installwarns about installing a development app on a production siteOpen in the FAQThe CLI warns because the development version of an app changes often and is not meant for sites where people do real work. If the site is your own developer site, that is exactly what it is for: answer yes. If it is a site your company or team uses, answer no and install on a developer site instead.
forge installsays “Insufficient permissions to install app”Open in the FAQOnly a site admin can install an app, and the account you are logged in with is not an admin of that site. That usually means you picked a site that isn’t your own developer site, such as one your company or team uses. Create a developer site of your own, where you are the admin, and install there:
RunTerminal forge site provision forge installThe CLI also suggests sending an installation link to the site’s admin. That is the right route for a real company site, but not for this course: keep your practice app off sites other people use.
forge site provisionis not available or failsOpen in the FAQUpdate the CLI first. If it still fails, create a developer site in your browser at go.atlassian.com/cloud-dev (opens in a new tab). Either way, build on a developer site of your own, not on the site your company uses for real work: you will install unfinished versions of the app many times, and each one can change the site’s work items.
Step 5: Open the panel on the BMW 3 Series repair task
Locked until the step before it is done.
Runs in the browser
Issue panel (jira:issuePanel)in the workshop: the car details card
jira:issuePanel is a module that adds your UI to the work item view. The first time, Jira shows it only as an entry under the View app actions icon below the work item’s title; once someone opens the panel, it stays on that work item. Its title in the manifest is the heading Jira draws above your UI.
In the workshop What the car on this repair task comes in, shown on the repair task itself.
- Open the BMW 3 Series – grinding noise from front work item.
- Under the work item’s title, find the small icon called View app actions (hover over the icons there to see their names), select it, then choose Workshop helper.
- Wait: the panel can take about ten seconds to load the first time. A DEV badge on it means you are seeing the development version of your app, which is right.
The panel opens with two lines. The first is fixed text in src/frontend/index.jsx. The second came from the cloud: the panel called invoke('getText'), the resolver answered 'Hello, world!', and the panel showed it. That round trip is what every lesson after this one builds on.
Spaces / Workshop / WS-1
BMW 3 Series – grinding noise from front
Workshop helper DEV
Hello world!
Hello, world!
Stuck?One common problem, and its fix
I can’t see the car details card on the work item
Open in the FAQCheck that the app is installed on the site you are looking at (
forge install list). Then open a work item and look under its title for a small icon called View app actions (hover over the icons to see their names); select it, then Car details. Issue panels are added this way once per work item, so every new work item needs it once. The panel can take about ten seconds to load the first time, and shows a DEV badge because you are running the development version.