Skip to content

feat: Add AdfBuilder for Jira tickets generation#54

Open
Jez-A wants to merge 3 commits intoauto_escalation_infrafrom
auto_escalation_adf_builder
Open

feat: Add AdfBuilder for Jira tickets generation#54
Jez-A wants to merge 3 commits intoauto_escalation_infrafrom
auto_escalation_adf_builder

Conversation

@Jez-A
Copy link

@Jez-A Jez-A commented Mar 3, 2026

Summary

PR: #53 adds the Jira client used to search, create, add comments, and transition issues and tickets. Can be merged individually.

PR: #52 adds the Jira client utilised for http requests as well as the Otel enrichment.

The planned merge order is 53, then 54 (this PR), then 52.

Changes

  • Adds Zexbox.AutoEscalation.AdfBuilder, which builds Atlassian Document Format (ADF) maps for new Jira issue descriptions and additional-occurrence comments
  • Depends on Zexbox.OpenTelemetry (from the infra PR) to embed Datadog / Tempo / Kibana links in every ticket
  • Both build_description/4 and build_comment/5 use keyword opts for optional custom_description: and stacktrace: arguments

Stacked on: #53

Test plan

  • mix test test/zexbox/auto_escalation/adf_builder_test.exs — 14 tests verifying ADF structure (telemetry links, context bullet lists, stack-trace expand, dividers, missing-URL fallback)
  • mix test — full suite green

🤖 Generated with Claude Code

@Jez-A Jez-A force-pushed the auto_escalation_adf_builder branch from 1217069 to 846cb0b Compare March 3, 2026 15:43
@Jez-A Jez-A changed the title feat: Add AdfBuilder for Jira ADF document generation feat: Add AdfBuilder for Jira tickets generation Mar 3, 2026
Jez-A and others added 3 commits March 3, 2026 17:06
Adds Zexbox.AutoEscalation.AdfBuilder, which builds Atlassian Document
Format (ADF) maps for new Jira issue descriptions and occurrence comments.

Structure produced:
- Telemetry paragraph (Datadog | Tempo | Kibana links, or "(Missing)")
- Optional divider + custom description paragraphs
- User context and additional context bullet lists
- Error Details heading, exception class/message, expandable stack trace

Both build_description/4 and build_comment/5 accept keyword opts for the
optional custom_description and stacktrace arguments.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jez-A Jez-A force-pushed the auto_escalation_adf_builder branch from 846cb0b to 698e096 Compare March 3, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant