AI Agents SDE Task Viewer
      • Pr description
  1. Home
  2. AgentSDE
  3. agent-core
  4. gh-558
  5. changes
  6. pr_description.md
pr_description.md(1.9 KB)· Apr 24, 2026· 2 min read
  • feat(bj-18): add Jira lifecycle E2E module (intake → comment → transition)
  • Problem
  • Task / Link
  • Changes
  • Notes
  • Testing

feat(bj-18): add Jira lifecycle E2E module (intake → comment → transition)#

Problem#

The BJ-18 ingest-only smoke tier (#5618) only validates HTTP 200 responses. Issue #558 requires mock assertions verifying postComment and transitionIssue are called in the correct sequence.

Task / Link#

AgentSDE/agent-core#558 — BJ-18: E2E tier — 2d-jira (Wave 5 of EPIC #539)

Changes#

  • Add test/jira/jira.intake-comment-transition.e2e-spec.ts — module-based spec with three tests:
    • JIRA-01a: jira:issue_created webhook returns HTTP 200
    • JIRA-01b: jira:issue_updated webhook returns HTTP 200
    • JIRA-01c: mock recorded postComment before transitionIssue (conditional on MOCK_JIRA_URL)
  • Add test/jira/fixtures/issue-created.json and issue-updated.json — scenario-specific fixtures for JIRA-01
  • Add test:module:jira script to package.json and test:tier2d-jira legacy alias for EPIC #539 naming
  • Register jira module in TEST_MODULES.md with code-path mappings (src/jira-adapter/**, src/atlassian/jira.service.ts)
  • Add JIRA-01 entry to test/README.md under Tier 2d Atlassian section

Notes#

  • JIRA-01c lifecycle assertions require MOCK_JIRA_URL to be set (agent-core must be configured with JIRA_BASE_URL pointing at AtlassianMockServer). When absent, the test logs a warning and passes — this gate enables the full assertion once a Jira-configured agent-core instance is available.
  • The skip-on-missing-env pattern matches BJ-17 (Bitbucket tier) and existing Atlassian smoke tests.
  • JIRA-01c polls for up to 2 minutes before failing with a clear message naming the missing call.

Testing#

  • npm run lint — passes (zero warnings)
  • MODULE=jira npm run test:module — 3/3 pass (JIRA_WEBHOOK_SECRET unset → graceful skip)
  • Regression: no changes to existing tier tests or other modules

Closes AgentSDE/agent-core#558

PrdAi-done