Forge automation action is now GA, see the documentation for more details.
This project contains a Forge app written in Javascript that adds a new custom action in Automation. This action can be used to create a new Atlassian group within a specific organization's directory using the Atlassian Admin APIs.
See developer.atlassian.com/platform/forge/ for documentation and tutorials explaining Forge.
See Set up Forge for instructions to get set up.
Since the app is already created, you need to register it in your developer environment before deploying it.
- Register your app by running:
forge registerBefore deploying the app, you must create environment variables for ORG_ID, ORG_API_KEY, and DIRECTORY_ID. These are required for the app to authenticate with the Atlassian Admin API.
Use the forge variables set command to set them. For example, to set them in the development environment:
forge variables set --encrypt --environment development ORG_ID "<your-org-id>"
forge variables set --encrypt --environment development ORG_API_KEY "<your-org-api-key>"
forge variables set --encrypt --environment development DIRECTORY_ID "<your-directory-id>"-
Modify your app frontend by editing the
src/frontend/index.jsxfile. -
Modify your app actions by editing the
src/actions/index.jsfile. -
Modify your app backend by editing the
src/resolvers/index.jsfile to define resolver functions. See Forge resolvers for documentation on resolver functions. -
Install all packages and dependencies by running"
npm install- Build and deploy your app by running:
forge deploy- Install your app in an Atlassian site by running:
forge install- Develop your app by running
forge tunnelto proxy invocations locally:
forge tunnel- 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.
See Get help for how to get help and provide feedback.