An Atlassian Forge app for use linking Jira issues to GrowthBook features and experiments.
See Set up Forge for instructions to get set up.
- Use the
forge tunnelcommand to enable hot-reloading between your computer and the development environment. - Use the
forge deploycommand when you want to persist code changes. - Use the
forge installcommand when you want to install the app on a new site. - Once the app is installed on a site, the site picks up the new app changes you deploy without needing to rerun the install command.
Forge apps must specify what urls they connect to before they're published, so to use this app with a non-cloud instance of GrowthBook you'll need to make a fork of this repo and apply a few edits
- Create a new Atlassian Forge app locally
- Take the app ID from the generated
manifest.ymland use it to replace our app ID in your fork'smanifest.yml. - Update the references to
api.growthbook.ioandapp.growthbook.ioto use your corresponding URLs in bothmanifest.ymlandsrc/utils/consts.ts. - You should end up with the following diff
diff --git a/manifest.yml b/manifest.yml
index eee3f43..5d9ba32 100644
--- a/manifest.yml
+++ b/manifest.yml
@@ -28,11 +28,11 @@ resources:
app:
runtime:
name: nodejs20.x
- id: ari:cloud:ecosystem::app/78d5cfe5-5311-4e0e-9bbd-5be2ae1eb445
+ id: generated-app-id
permissions:
scopes:
- storage:app
external:
fetch:
client:
- - "https://api.growthbook.io"
+ - "https://your-site-here.com"
diff --git a/src/utils/consts.ts b/src/utils/consts.ts
index 06e8ffa..73a7234 100644
--- a/src/utils/consts.ts
+++ b/src/utils/consts.ts
@@ -1,2 +1,2 @@
-export const GB_API_HOST = "https://api.growthbook.io";
-export const GB_APP_ORIGIN = "https://app.growthbook.io";
+export const GB_API_HOST = "https://api.your-site-here.com";
+export const GB_APP_ORIGIN = "https://app.your-site-here.com";