GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@only21mil

@only21mil only21mil commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions
@only21mil
fix(issues): Jira no longer refuses a comment or description with an …
1151d3c
…empty quote
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

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

  • pingdotgg/t3code#38003: Introduced the Jira document converter changed here.

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot reviewed Nov 28, 2026
View reviewed changes

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: bf6c5df
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e2ea6a75-edb8-4a42-94cf-e5046bf8f326
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.

All reactions
@only21mil only21mil closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] left review comments

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.

Projects

None yet

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.

1 participant

@only21mil
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.