feat: Add AdfBuilder for Jira tickets generation#54
Open
Jez-A wants to merge 3 commits intoauto_escalation_infrafrom
Open
feat: Add AdfBuilder for Jira tickets generation#54Jez-A wants to merge 3 commits intoauto_escalation_infrafrom
Jez-A wants to merge 3 commits intoauto_escalation_infrafrom
Conversation
This was referenced Mar 3, 2026
1217069 to
846cb0b
Compare
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>
846cb0b to
698e096
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Zexbox.AutoEscalation.AdfBuilder, which builds Atlassian Document Format (ADF) maps for new Jira issue descriptions and additional-occurrence commentsZexbox.OpenTelemetry(from the infra PR) to embed Datadog / Tempo / Kibana links in every ticketbuild_description/4andbuild_comment/5use keyword opts for optionalcustom_description:andstacktrace:argumentsStacked 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