Skip to content

fix(issue): convert Markdown descriptions to Jira wiki markup on upload - #97

Merged
f3rdy merged 1 commit into
masterfrom
fix/issue-95-markdown-to-wiki
Jul 17, 2026
Merged

f3rdy merged 1 commit into
masterfrom
fix/issue-95-markdown-to-wiki

Conversation

@f3rdy

@f3rdy f3rdy commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

budjira talks to Jira over REST API v2, where the description field is rendered
with the legacy wiki-markup renderer. Descriptions were uploaded verbatim, so
Markdown that authors naturally write rendered as garbage — ## Description became
a 1. → a. numbered outline and - [ ] rendered as literal [ ] text (issue #95).

This PR adds a contained Markdown → Jira wiki-markup converter and applies it on
the description write paths. It is the pragmatic v2 workaround; the correct long-term
fix (REST v3 + ADF, which affects far more than descriptions) is tracked as epic #96.

Changes

  • new budjira/utils/markdown_to_jira.py: markdown_to_wiki() — headings (# →h1.),
    bullet/ordered lists, task checkboxes (- [ ]→* (x), - [x]→* (/)), bold,
    inline code, links, fenced code blocks (verbatim inside {code})
  • budjira/services/issues.py: convert description on create() and update()
  • tests: 26 converter unit tests + 2 service wiring tests

Why the service layer

DoR validation runs upstream in the CLI on the raw Markdown, so its ^## section
markers still match. Conversion happens inside IssueService, after DoR — so a
DoR-compliant create both passes validation and renders correctly.

Scope

Descriptions only (create + update), matching issue #95. Comment/worklog/link bodies
have the same v2 wiki-markup behavior and are listed as part of the broader v3 work in
#96; the converter is generic and can be applied there later.

Verification

  • full suite: 893 passed, 3 skipped (pre-existing)
  • ruff check + format: clean · mypy: clean · bandit: no findings

Closes #95
Part of #96

budjira talks to Jira over REST API v2, where the description field is
rendered with the legacy wiki-markup renderer. Descriptions were uploaded
verbatim, so Markdown that authors write (headings, checkboxes, bullet
lists) rendered as garbage: `## X` became a numbered outline, `- [ ]`
literal text.

Add a contained Markdown->wiki converter (headings, bullet/ordered lists,
task checkboxes, bold, inline code, links, fenced code) and apply it on the
create and update description write paths in IssueService. DoR validation
runs upstream on the raw Markdown, so its `## ` section markers still match.

This is the pragmatic v2 workaround; the proper REST v3 + ADF migration is
tracked separately as an epic.

Closes #95
@f3rdy
f3rdy merged commit 51bfa52 into master Jul 17, 2026
5 checks passed
@f3rdy
f3rdy deleted the fix/issue-95-markdown-to-wiki branch July 29, 2026 07:37
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.

Description uploaded unconverted → Jira renders it as legacy wiki markup, breaking Markdown headings & checkboxes

1 participant