Skip to content

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

Closed

Description

@f3rdy

FR: Description field is uploaded unconverted → Jira renders it as legacy wiki markup, so Markdown breaks

Summary

budjira create issue/issue update take a --description string and upload it verbatim. Because the Jira client is created without a rest_api_version, the underlying jira Python library defaults to REST API v2, where description is a plain string that Jira Cloud renders with the classic wiki-markup renderer — not Markdown, not ADF. There is no Markdown→wiki/ADF conversion anywhere in budjira. As a result, Markdown that authors naturally write renders as garbage.

Reproduce

Create or update an issue with a Markdown description:

## Description

Some text.

## Acceptance Criteria

- [ ] first
- [ ] second

Rendered result in Jira Cloud:

  • ## Description → a nested numbered list (1. → a. Description), because in wiki markup # at line start is an ordered-list item and ## is a nested one. Not a heading.
  • - [ ] → literal text [ ] first (wiki markup has no checkbox syntax, and - is not a bullet marker — only * is).

Root cause

  • budjira/core/jira_client.py: JIRA(server=..., basic_auth=..., timeout=30) is constructed without options={"rest_api_version": "3"}, so jira-python defaults to v2.
  • budjira/services/issues.py: the description string is passed through unchanged on create/update.
  • No module in the repo references markup/wiki/ADF conversion.

Extra friction: DoR validator mandates the very syntax that breaks

budjira/utils/dor_validator.py requires Markdown section markers (regex ^## (.+)$, e.g. ## Description) in the --description passed to create issue. That same string is then uploaded verbatim and collides with wiki markup. So a DoR-compliant create is guaranteed to render badly. (issue update does not run DoR, which is currently the only escape hatch — see workaround.)

Impact

Affects every connection, not one project — rest_api_version is never set, so v2 is the tool-wide default. Any team writing Markdown descriptions gets mangled output.

Current workaround (documented so others stop hitting it)

Two-step: create issue with Markdown (DoR passes) → immediately issue update KEY --description "<same content in Jira wiki markup>" (no DoR check on that path). Wiki markup that renders cleanly: *bold*, {{monospace}}, #/* for real ordered/bullet lists; issue keys like ABC-123 auto-link.

Proposed fix (in preference order)

  1. Switch the client to REST API v3 (rest_api_version": "3") and send the description as ADF, converting from Markdown on upload. This makes Markdown descriptions render as intended and aligns the DoR markers with the rendered output.
  2. If ADF is too large a step: add a Markdown→wiki-markup conversion on upload (headings, checkboxes, bullet lists at minimum).
  3. Minimum: document the wiki-markup requirement and make the DoR validator accept (or the uploader translate) so create and render agree.

Notes

Reported from real usage where ## Description / ## Acceptance Criteria DoR sections rendered as a 1. → a. outline and checkboxes as raw [ ]. No project- or customer-specific behavior involved.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions