Course menuForge Cloud

Level 2 · Lesson 0

Get ready for Level 2

Goal of this lesson

Get everything Level 2 needs on top of your Level 1 app.

What you need

  • A working Level 1 app
  • An Approved for expert status in Jira
  • A Confluence space
  • Rovo
  • Two settings that tell the app where the workshop keeps its work

About 15 min5 steps

Behind, or starting here? Download the code as it should be before this lesson, or in the course workspace run course-catch-up level-1/after-07-hang-the-bell in the folder above your app. It offers to bring your own app folder to this point and keeps its app id (the id: line in manifest.yml, which links the code to your app on the site), so it stays the same app. Your old files are kept in a copy next to it.

Level 2 adds a check-in desk to the same app. When a car comes in, the person at the front desk names the car and pastes the customer’s or mechanic’s notes on a page in Jira, and the app turns them into:

  • Repair tasks
  • A repair report in Confluence
  • Work for an AI agent

It starts from the finished Level 1 app and uses more of your developer site.

Step 1: Start from a working Level 1 app

Open the BMW 3 Series repair task and check the car details card still shows the car’s details. Everything in Level 2 is added to that same folder.

Starting fresh, or behind? Download the code from the link above, unzip it, and follow its README:

  1. Run npm install.
  2. Run forge register, which registers the downloaded code with Atlassian as a new app under your account (every app has its own id, stored as app.id at the end of manifest.yml).
  3. Set your API Ninjas key as in Level 1, lesson 3.
  4. Deploy.

If you already have a Level 1 app of your own, copy the id: line from your old manifest.yml into the downloaded one instead of running forge register, so you keep the same app and its installation.

Stuck?2 common problems, and their fixes
  • I can’t see the car details card on the work item

    Check 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.

    Open in the FAQ
  • The card says “No API Ninjas key”

    The variable is missing in this environment, or you have not deployed since setting it:

    RunTerminal
    forge variables set --encrypt API_NINJAS_KEY
    forge deploy

    With forge tunnel running, your laptop runs the code, so the key has to be in your shell as FORGE_USER_VAR_API_NINJAS_KEY. In bash or zsh, read -s FORGE_USER_VAR_API_NINJAS_KEY && export FORGE_USER_VAR_API_NINJAS_KEY asks for it without echoing it.

    Open in the FAQ

Step 2: Add the Approved for expert status

Lesson 5 sends a repair to an expert when someone moves it to a status with this exact name.

Add a status named exactly Approved for expert, with that spelling and capitals, to the Workshop space: the app looks for it by name.

  • In a team-managed space, which the Kanban template from Level 1 normally creates, select the + after the last column on the board and add it there. Leave the status category as it is.
  • In a company-managed space, add it to the space’s workflow, with transitions into and out of it.

Step 3: Create a Confluence space for repair reports

Lesson 4 writes a repair report for every check-in. Open Confluence on the same developer site and create a space called Repair reports. Confluence asks what the space is for; the default choice is fine, so continue through its screens and create the space. Confluence fills in a short space key from the name, usually RR; you can see it, and change it, under the option to customise the space key before you create the space. If it gives a different key, note it and use it wherever this course says RR.

Stuck?One common problem, and its fix
  • forge site provision is not available or fails

    Update 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.

    Open in the FAQ

Step 4: Check Rovo is on

Lessons 6 and 7 add agents to Rovo, Atlassian’s AI assistant. Select Ask Rovo in the top bar of your developer site; a chat opens. If there is no Ask Rovo button, Rovo is off on this site. You are its administrator, so you can turn it on in Atlassian Administration (admin.atlassian.com (opens in a new tab)), or create a new developer site that includes it.

Stuck?One common problem, and its fix
  • The diagnosis expert does not appear in Rovo

    Rovo has to be active on the site, and the installation has to be on the version that added the agent. Deploy, approve and upgrade, then open Rovo Chat and browse agents.

    Open in the FAQ

Step 5: Tell the app where to work

The app reads which Jira space and which Confluence space to use from two variables. They are not secrets, so they are not encrypted. Use your own keys if they differ:

RunTerminal
forge variables set WORKSHOP_PROJECT_KEY WS
forge variables set REPORTS_SPACE_KEY RR
forge variables list

Repair tasks are created with the work type Task. If your Workshop space has no Task type, also set WORKSHOP_ISSUE_TYPE to one it has, such as Story.

You deploy in the next lesson, so there is no need to deploy now.

Stuck?2 common problems, and their fixes
  • I set or changed a variable

    Variables reach your functions with the next deploy:

    RunTerminal
    forge variables list
    forge deploy

    Variables belong to one environment. Unless you add -e followed by an environment name (such as -e production), both commands use development.

    Open in the FAQ
  • Creating a repair task fails with “Jira answered 400”

    Usually the issue type. The app creates a Task in the space set by WORKSHOP_PROJECT_KEY. If your space has no Task type, set another one and deploy:

    RunTerminal
    forge variables set WORKSHOP_ISSUE_TYPE Story
    forge deploy
    Open in the FAQ

Type at least two letters.