Skip to content

Conversation

@theider
Copy link

@theider theider commented Dec 3, 2025

Jira Cloud's new editor returns description and comment body fields as Atlassian Document Format (ADF) JSON objects instead of plain strings. This was causing Pydantic validation errors when searching issues.

Changes:

  • Add adf_to_text() function to recursively extract plain text from ADF
  • Update JiraIssue.from_api_response() to convert ADF descriptions
  • Update JiraComment.from_api_response() to properly convert ADF body content

Fixes validation error: "Input should be a valid string [type=string_type,
input_value={'type': 'doc', ...}]"

🤖 Generated with Claude Code

Description

Fixes: #

Changes

Testing

  • Unit tests added/updated
  • Integration tests passed
  • [x ] Manual checks performed: [briefly describe] we have tested it on our MCP server. Can now search for issues.

Checklist

  • Code follows project style guidelines (linting passes).
  • Tests added/updated for changes.
  • All tests pass locally.
  • Documentation updated (if needed).

theider and others added 2 commits December 3, 2025 14:25
Jira Cloud's new editor returns description and comment body fields
as Atlassian Document Format (ADF) JSON objects instead of plain strings.
This was causing Pydantic validation errors when searching issues.

Changes:
- Add adf_to_text() function to recursively extract plain text from ADF
- Update JiraIssue.from_api_response() to convert ADF descriptions
- Update JiraComment.from_api_response() to properly convert ADF body content

Fixes validation error: "Input should be a valid string [type=string_type,
input_value={'type': 'doc', ...}]"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
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.

1 participant