Skip to content

Add Jira Automation webhook support #98

@Gops123

Description

@Gops123

Summary

Add support for Jira Automation webhooks in the AOF daemon, allowing automated workflows triggered by Jira events like issue creation, updates, comments, and work logging.

Features

  • Jira Platform Registration: Register Jira platform in daemon serve command
  • Flexible Payload Parsing: Handle minimal payloads from Jira Automation (optional fields)
  • Signature Verification: Support both static secrets and HMAC-SHA256 signatures
  • Webhook Endpoint: /webhook/jira for receiving Jira events

Changes

  1. crates/aofctl/src/commands/serve.rs - Add Jira platform configuration and registration
  2. crates/aof-triggers/src/platforms/jira.rs - Make payload fields optional for Automation compatibility
  3. crates/aof-triggers/src/lib.rs - Export JiraPlatform and JiraConfig
  4. docs/tutorials/jira-automation.md - Updated tutorial with payload templates
  5. docs/reference/jira-integration.md - Updated reference docs

Configuration

apiVersion: aof.dev/v1
kind: DaemonConfig
metadata:
  name: jira-automation

spec:
  server:
    port: 3000

  platforms:
    jira:
      enabled: true
      base_url: https://your-instance.atlassian.net
      user_email_env: JIRA_USER_EMAIL
      api_token_env: JIRA_API_TOKEN
      webhook_secret_env: JIRA_WEBHOOK_SECRET

Jira Automation Setup

  1. Create Automation rule with trigger (e.g., "Comment created")
  2. Add "Send web request" action
  3. Configure Custom data with issue and comment fields
  4. Add X-Hub-Signature header with webhook secret

Related Branch

feature/jira-automation-support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions