Skip to content

seibert-external/forge-dev-den-jira-automations

Repository files navigation

Forge Automation Actions

Thumbnail

Code example for the Forge Dev Dev live coding session. Demonstrates how to build custom Jira automation actions with Custom UI configuration forms.

Each action has its own Custom UI workspace for the configuration form and a shared backend in src/actions/.

Actions

Get Project Lead

Returns the email address of a project's lead.

  • Inputs: Project ID or Key
  • Outputs: email (string)

Get Project Role Members

Returns the email addresses of all members in a given project role.

  • Inputs: Project ID or Key, Role Name (e.g. Member, Administrator, Viewer)
  • Outputs: List of { email } objects

Project Structure

src/
  actions/index.js    # Backend action handlers
  resolvers/index.js  # Forge resolver definitions
  index.js            # Entry point (exports)
static/
  project-lead/       # Custom UI for Get Project Lead
  project-roles/      # Custom UI for Get Project Role Members
manifest.yml          # Forge app manifest

Setup

npm install

This installs dependencies for the root project and all workspaces (static/project-lead, static/project-roles) via npm workspaces.

The manifest.yml references FORGE_APP_ID as an environment variable. Export it before running any forge commands:

export FORGE_APP_ID=12345678-1234-1234-1234-123456789012

Build and Deploy

npm run build
forge deploy

To install on a new Atlassian site:

forge install

Once installed, subsequent forge deploy commands push updates without reinstalling. If you change permission scopes in manifest.yml, run forge install --upgrade to apply them.

Development

Start all Custom UI dev servers:

npm run dev

Then run the Forge tunnel in a separate terminal:

forge tunnel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors