GeezerVison is showing github.com — fix(issues): Jira no longer refuses a comment or description with an empty quote by only21mil · Pull Request #44548 · pingdotgg/t3code
Conversation
Problem
When a Jira issue description or comment has a quote with nothing Jira can hold in it, T3 Code sends { "type": "blockquote", "content": [] }. Examples are a bare > line between paragraphs, > ---, > >, or a quoted link definition. Atlassian's ADF schema requires a blockquote to have at least one child (minItems: 1). Jira rejects the whole document over one bad node, so the comment or description is refused, including the text around the quote.
Change
markdownToAdf now drops a top-level quote whose converted content is empty, the same way it already drops a nested ---. A quote with any content is unchanged. If the empty quote was the whole document, the result is the empty document that markdownToAdf("") already returns.
Scope
Bug fix in packages/issue-tracker-jira only: one changed line and one test assertion. It needs no issue because the file header already says writing produces only nodes Jira's schema accepts, and an empty quote breaks that.
Verification
- New assertion in the existing "writes only nodes Jira's schema accepts" case in
adf.test.ts: a > --- quote between two paragraphs. On main it fails because the output has an extra { "type": "blockquote", "content": [] } between them. With the fix all 5 tests in the file pass.
vp run check:changed passes with 0 warnings and 0 errors.
- I validated the output against Atlassian's published ADF JSON Schema (
@atlaskit/adf-schema 57.7.63, json-schema/v1/full.json) with a draft-04 validator. I drove the real JiraIssueTracker.comment and JiraIssueTracker.update through a fake Jira HTTP client and checked the body each one sends:
| Input |
main |
This PR |
comment Thanks, see the notes: / > --- / Shipping today. |
paragraph, empty blockquote, paragraph: invalid (/content/1/content fewer than 1 item) |
two paragraphs: valid |
description Steps: / > / Open the app. |
paragraph, empty blockquote, paragraph: invalid |
two paragraphs: valid |
markdownToAdf of >, > ---, > >, > [a]: https://example.com |
empty blockquote: invalid |
content: []: valid |
markdownToAdf("> quoted") |
blockquote with paragraph: valid |
unchanged: valid |
Not shown: a request to a live Jira Cloud site. I checked against the published schema instead.
Generated with Gemini 4 Neon in T3 Code Nightly
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Walkthrough
-
The Jira document converter now omits blockquote wrappers for nested blockquotes and blockquotes with no converted content. A test checks that a quote containing only a horizontal rule does not appear between surrounding paragraphs.
Changes: Jira blockquote conversion
| Layer / File(s) |
Summary |
Blockquote conversion behavior packages/issue-tracker-jira/src/server/adf.ts, packages/issue-tracker-jira/src/server/adf.test.ts |
toBlocks returns converted content directly for nested or empty blockquotes. A test checks that a quote containing only a horizontal rule is omitted. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Possibly related PRs
Suggested labels: bugfix
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to 1151d
-
This change stops Jira from rejecting comments or descriptions that contain an empty quote, and quotes with content are unchanged. No concrete merge-blocking risk remains. Nested quotes inside list items were already flattened before this change.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the fix and its scope: Jira comments and descriptions with an empty quote are no longer refused. It matches the raw summary, which describes dropping a blockquote whose converted conte… |
| Description check |
 |
The description follows the template. It covers Problem, Change, Scope, and Verification. The Problem section gives the cause and the Jira rejection path. The Change section explains the fix. Scope li… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title names the fix and its scope: Jira comments and descriptions with an empty quote are no longer refused. It matches the raw summary, which describes dropping a blockquote whose converted content is empty. The title follows the conventional commit format and is specific.
Full details: Description check
-
Explanation
The description follows the template. It covers Problem, Change, Scope, and Verification. The Problem section gives the cause and the Jira rejection path. The Change section explains the fix. Scope links no issue but explains why none is needed, and states that the change is a bug fix in one package. Verification lists focused tests, a schema check with a comparison table, and states what was not checked (live Jira Cloud). The description meets the template requirements.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional comments: 1
-
packages/issue-tracker-jira/src/server/adf.ts-367-367: 1
-
367-367: Minor · Functional Correctness · Quick win
Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.
Preserve the distinction for nested quotes.
For - intro\n\n > cited, the list passes the quote with nested=true. This returns cited as an ordinary list paragraph, so conversion back to Markdown loses the quote. Preserve the distinction with a textual quote marker when a nested ADF blockquote is not allowed. Jira’s listItem content does not allow a blockquote. (developer.atlassian.com)
Review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between bf6c5df and 1151d3c.
Files selected for processing: 2
-
packages/issue-tracker-jira/src/server/adf.test.ts
packages/issue-tracker-jira/src/server/adf.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|