Skip to content

DOCS-1872 - Clarify when Jira descriptions need ADF instead of markdown - #7111

Merged
kimsauce merged 2 commits into
mainfrom
fix-jira-description-contentformat
Sep 10, 2026
Merged

kimsauce merged 2 commits into
mainfrom
fix-jira-description-contentformat

Conversation

@kimsauce

@kimsauce kimsauce commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Purpose of this pull request

Corrects the Jira Description field rule in AGENTS.md, which said to always use contentFormat: markdown. That silently deletes content on any ticket holding more than plain text.

Jira Cloud stores rich text as ADF. Markdown is a lossy conversion layer on top of it, so writing a description as markdown drops anything markdown cannot express: attached images and other media, panels, expand and collapse blocks, status lozenges, @ mentions, date nodes, and column layouts. Reading is lossy in the same direction. A media node comes back as a blob: placeholder rather than a usable image source, so writing it back destroys the attachment.

The revised rule keeps markdown as the default for text-only fields, switches to ADF when the field holds anything richer, and says to fetch a field as ADF first when you are unsure what it contains.

Select the type of change

  • Minor Changes - Typos, formatting, slight revisions
  • Update Content - Revisions, updating sections
  • New Content - New features, sections, pages, tutorials
  • Site and Tools - .clabot, version updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

Ticket (if applicable)

https://sumologic.atlassian.net/browse/DOCS-1872

🤖 Generated with Claude Code

The Jira field rules said to always use contentFormat: markdown for
descriptions. Markdown is a lossy conversion layer over ADF, which is what
Jira Cloud actually stores, so rewriting a description as markdown silently
deletes any node markdown cannot express: media, panels, expand blocks,
status lozenges, mentions, dates, and layouts.

Rewriting DOCS-1867 hit this. Its description embedded two screenshots that
a markdown write would have dropped, and on read they surfaced only as
blob: placeholder URLs that are not usable image sources.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@kimsauce kimsauce self-assigned this Sep 9, 2026
@cla-bot cla-bot Bot added the cla-signed Contributor approved, listed in .clabot file label Sep 9, 2026
@kimsauce

kimsauce commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

Folded into #7099 (DOCS-1867) instead. Same one-line change, byte-identical, now carried by a ticketed PR rather than standing alone without one.

The two are more connected than a separate PR suggested: the ADF problem surfaced while rewriting the DOCS-1867 ticket description, whose two screenshots a markdown write would have silently dropped.

Branch fix-jira-description-contentformat is left in place for now in case this needs to be split back out.

@kimsauce kimsauce closed this Sep 9, 2026
@kimsauce

kimsauce commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

Reopening. The ADF rule is out of scope for #7099, which is specifically about GitHub PR comments and Jira ticket comments, so it belongs here on its own after all.

@kimsauce kimsauce reopened this Sep 9, 2026
@kimsauce kimsauce changed the title Clarify when Jira descriptions need ADF instead of markdown DOCS-1872 - Clarify when Jira descriptions need ADF instead of markdown Sep 9, 2026
@kimsauce
kimsauce enabled auto-merge September 10, 2026 13:43
@kimsauce
kimsauce added this pull request to the merge queue Sep 10, 2026
Merged via the queue into main with commit fee017a Sep 10, 2026
4 checks passed
@kimsauce
kimsauce deleted the fix-jira-description-contentformat branch September 10, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed Contributor approved, listed in .clabot file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants