Skip to content

Jira Integration

Argus creates Jira tickets for approved proposals. Each ticket contains the AI reasoning, key metrics, a copy-paste runbook, and a rightsizing recommendation (for resize/reduce_nodes actions).

Setup

1 — Policy directory

Tell Argus where your policy files live:

export ARGUS_POLICY_DIR=./config/policies   # default — already correct if you use the repo layout

Not set? Argus silently skips remediation and only posts the scan digest to Slack. Copy starter templates from config/policies.example/ to get going quickly.

2 — Jira API token

Generate an API token at id.atlassian.com/manage-profile/security/api-tokens and set these env vars:

export JIRA_BASE_URL=https://yourorg.atlassian.net
export JIRA_USER_EMAIL=you@yourorg.com
export JIRA_API_TOKEN=your-token-here

3 — Turn on automatic tickets (optional)

argus policies apply --confirm creates tickets on demand with just the steps above. To have every scheduled scan create tickets as well, opt in:

export REMEDIATION_ENABLED=true   # default: false

If Jira credentials are set but this is off, the scan logs remediation_skipped reason=disabled with a hint, and still delivers the Slack digest. With DRY_RUN=true, an enabled scan logs what it would track and makes no Jira calls.

4 — Integrations config

Create config/integrations.yaml (gitignored — never commit this):

Start from config/integrations.yaml.example:

version: "1"

jira:
  project: COST                 # required — Jira project key where tickets are created
  issue_type: Task              # optional (default: Task)
  default_labels:               # optional (default: [argus, cost-optimization])
    - argus
    - cost-optimization
  priority_map:                 # optional — AI priority → Jira priority name
    high: High
    medium: Medium
    low: Low

Without jira.project, ticket creation fails with a clear error (the scan itself still completes).

Set the path via ARGUS_INTEGRATIONS_CONFIG if you store it elsewhere:

export ARGUS_INTEGRATIONS_CONFIG=/path/to/config/integrations.yaml

Ticket lifecycle

Create

On first apply --confirm for a finding, Argus:

  1. Searches for an existing open ticket with label argus:<resource_id>:<policy_id>
  2. If none found — creates a new ticket with full ADF description and a snapshot fingerprint
  3. If found — compares the fingerprint and adds a comment describing what changed; the description is not rewritten

This makes apply --confirm idempotent — re-running after a re-scan either does nothing (finding unchanged) or adds one comment to the existing ticket (cost, priority, or AI reasoning changed), and never creates duplicates.

Update on re-scan

If the same resource appears in a later scan with different metrics or cost:

  • Argus compares against the snapshot fingerprint embedded in the ticket description when it was created
  • It adds a comment headed Argus re-scan update — <date> listing what changed (cost, priority, AI reasoning)
  • The original description and its fingerprint are left as they were

Close

Argus does not auto-close tickets. When a human resolves a ticket in Jira, Argus will stop matching it on future scans (JQL filter: statusCategory != Done).

Ticket structure (ADF)

Each ticket description has these sections:

Section Content
Finding Resource ID, type, cloud, region, estimated monthly cost, AI priority, last activity
Key Metrics Table of metrics_summary values (omitted if empty)
Why Argus Flagged This AI-written waste_reason
Recommendation AI-written recommendation + rightsizing hint (if applicable)
Runbook Copy-paste CLI commands in a code block + "Human approval required" warning
Policy policy_id, weight, source file
Full Report Link to scan report (if report_url is set)

Audit log

Every apply --confirm appends a line to local_reports/audit.jsonl:

{"ts":"2026-07-05T10:23:45+00:00","proposal_id":"uuid4","resource_id":"i-0abc","resource_type":"AWS::EC2::Instance","cloud":"aws","region":"us-east-1","policy_id":"aws-ec2-stop-idle-14d","action":"stop","estimated_monthly_cost_usd":28.40,"ai_priority":"high","jira_key":"COST-42","jira_url":"https://yourorg.atlassian.net/browse/COST-42"}

The file is append-only — multiple entries for the same proposal_id represent re-scans. Use argus policies stats to aggregate it.

Override the path with ARGUS_AUDIT_LOG:

export ARGUS_AUDIT_LOG=/var/log/argus/audit.jsonl

Labels

Every Argus ticket gets these labels automatically:

Label Purpose
default_labels from integrations.yaml argus, cost-optimization unless you override them
argus:<resource_id>:<policy_id> Dedup key — one open ticket per resource per policy
argus-priority-<high\|medium\|low> AI-assigned priority
argus-action-<action> Proposed action (stop, resize, delete, etc.)

Do not remove the dedup label

Removing argus:<resource_id>:<policy_id> from a ticket will cause Argus to create a duplicate on the next scan.