Webhooks
Webhooks
Section titled “Webhooks”Run a local webhook server for Jira events.
Prerequisites
Section titled “Prerequisites”- Authenticated profile (
atlcli auth login) - Jira permission: Administer Projects (to configure webhooks in Jira)
- Publicly accessible URL (use ngrok or similar for local development)
Start Server
Section titled “Start Server”atlcli jira webhook serve --port 3000Starts a server listening for Jira webhook events.
Events
Section titled “Events”Supported events:
issue_createdissue_updatedissue_deletedcomment_createdsprint_startedsprint_completed
Configuration
Section titled “Configuration”Configure webhook handlers in .atlcli-webhooks.json:
{ "handlers": [ { "event": "issue_created", "command": "./scripts/notify-slack.sh" }, { "event": "issue_updated", "filter": "project = PROJ AND type = Bug", "command": "./scripts/update-dashboard.sh" } ]}Webhook Setup
Section titled “Webhook Setup”- Start the server:
atlcli jira webhook serve - Expose with ngrok:
ngrok http 3000 - Add webhook in Jira project settings with ngrok URL
Handler Scripts
Section titled “Handler Scripts”Handler scripts receive event data via stdin:
#!/bin/bashread -r event_datakey=$(echo "$event_data" | jq -r '.issue.key')echo "Issue created: $key"Related Topics
Section titled “Related Topics”- Issues - Issue events and lifecycle
- Boards & Sprints - Sprint events
Jira and Confluence are trademarks of Atlassian Corporation Plc.
atlcli is not affiliated with, endorsed by, or sponsored by Atlassian.