Skip to content

worktree-io/jira-comment-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

jira-comment-webhook

A webhook server that automatically posts an Open workspace comment on newly created Jira issues.

When a Jira issue is created, the webhook posts a comment containing a direct link to open a Worktree workspace for that issue.

How it works

  1. Jira sends a jira:issue_created webhook event to this server
  2. The server posts a comment on the issue with a link to open a Worktree workspace

Setup

Environment variables

Variable Description
JIRA_HOST Your Jira instance hostname (e.g. your-org.atlassian.net)
JIRA_USER_EMAIL Email address of the Jira user for API authentication
JIRA_API_TOKEN Jira API token (generate one here)
GITHUB_OWNER GitHub repository owner/org (e.g. my-org)
GITHUB_REPO GitHub repository name (e.g. my-repo)
PORT Port to listen on (default: 3000)

Running

pnpm install
JIRA_HOST=your-org.atlassian.net \
JIRA_USER_EMAIL=you@example.com \
JIRA_API_TOKEN=your-token \
GITHUB_OWNER=my-org \
GITHUB_REPO=my-repo \
pnpm start

Jira webhook configuration

In your Jira project settings, create a webhook pointing to this server:

  • URL: http://your-server:3000
  • Events: Issue → created

License

MIT

About

Webhook handler that posts an Open workspace comment on new Jira issues

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors