Skip to content

kashsingh/Forge-Automation-Action-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forge Automation Action Demo

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.

Requirements

See Set up Forge for instructions to get set up.

Quick start

1. Register your app

Since the app is already created, you need to register it in your developer environment before deploying it.

  • Register your app by running:
forge register

2. Set environment variables

Before 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>"

3. Develop and deploy

  • Modify your app frontend by editing the src/frontend/index.jsx file.

  • Modify your app actions by editing the src/actions/index.js file.

  • Modify your app backend by editing the src/resolvers/index.js file 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 tunnel to proxy invocations locally:
forge tunnel

Notes

  • Use the forge deploy command when you want to persist code changes.
  • Use the forge install command 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.

Support

See Get help for how to get help and provide feedback.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors