Skip to content

jira-wiki-to-adf.py: tables and links not converted to ADF nodes #40

Description

@durandom

Bug

scripts/jira-wiki-to-adf.py in the rhdh-jira skill does not convert Jira wiki markup tables (||header||...||) or wiki-style links ([text|url]) into proper ADF nodes. They are emitted as raw text inside paragraph nodes, rendering as literal markup in the Jira UI instead of formatted content.

Reproduction

Input (input.txt):

h2. Target repos

||Repo||Owner||Status||
|rhdh-agentic|Marcel|Live|
|rhdh-plugins|Paul|Pending|

h2. References

* [Observation doc|https://github.com/example/repo/blob/main/doc.md] — full journey
* [PR #2543|https://github.com/example/repo/pull/2543] — pending

Run:

python3 scripts/jira-wiki-to-adf.py input.txt > output.json

Expected: ADF with table/tableRow/tableCell/tableHeader nodes and text nodes with link marks.

Actual: Raw ||Repo||Owner||Status|| text in a paragraph node. Raw [text|url] text in list item nodes.

What works

The converter correctly handles: hN. headings, * bullet lists, # ordered lists, *bold*, _italic_, {{monospace}}, (?) / (/) task items.

Workaround

Build ADF JSON manually in Python for descriptions with tables or links (as documented in Gotcha #6 of the skill).

Impact

Affects any Jira issue creation or update that uses the converter with tables or links in the description — the formatted content renders as literal wiki markup text in the Jira Cloud UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions