Skip to content

chore: enhance issue body formatting for Jira integration#514

Merged
jirhiker merged 1 commit intostagingfrom
BDMS-557-Implement-a-GitHub-Action-that-automatically-creates-a-corresponding-Jira-issue-whenever-a-new-GitHub-Issue-is-opened-in-selected-repositories
Feb 13, 2026
Merged

chore: enhance issue body formatting for Jira integration#514
jirhiker merged 1 commit intostagingfrom
BDMS-557-Implement-a-GitHub-Action-that-automatically-creates-a-corresponding-Jira-issue-whenever-a-new-GitHub-Issue-is-opened-in-selected-repositories

Conversation

@jirhiker
Copy link
Copy Markdown
Member

Why

This PR addresses the following problem / context:

  • Use bullet points here

How

Implementation summary - the following was changed / added / removed:

  • Use bullet points here

Notes

Any special considerations, workarounds, or follow-up work to note?

  • Use bullet points here

Copilot AI review requested due to automatic review settings February 13, 2026 22:37
@jirhiker jirhiker merged commit 88fb202 into staging Feb 13, 2026
8 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GitHub Actions workflow that creates Jira issues on GitHub issue open, aiming to improve how the GitHub issue body is formatted when sent to Jira.

Changes:

  • Added a small Python helper to convert plain text into Jira Atlassian Document Format (ADF).
  • Switched Jira payload generation to send fields.description as ADF instead of a raw string.

Comment on lines +56 to +70
def text_to_adf(text: str) -> dict:
lines = text.splitlines()
if not lines:
lines = ["(No issue body provided)"]

content = []
for idx, line in enumerate(lines):
if line:
content.append({"type": "text", "text": line})
if idx < len(lines) - 1:
content.append({"type": "hardBreak"})

if not content:
content = [{"type": "text", "text": "(No issue body provided)"}]

Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

text_to_adf() treats bodies that contain only blank lines as non-empty because it will emit only hardBreak nodes, so the “(No issue body provided)” placeholder is never used. This can result in Jira descriptions that appear empty/blank. Consider normalizing input with something like if not text.strip(): (or if not any(line.strip() for line in lines)) before building ADF content so whitespace-only bodies get the placeholder.

Copilot uses AI. Check for mistakes.
@jirhiker jirhiker deleted the BDMS-557-Implement-a-GitHub-Action-that-automatically-creates-a-corresponding-Jira-issue-whenever-a-new-GitHub-Issue-is-opened-in-selected-repositories branch February 13, 2026 22:40
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.

2 participants