Skip to content

[Bug]: confluence_update_page corrupts Confluence table when updating a single row with content_format set to storage #1167

@goAvni

Description

@goAvni

Prerequisites

  • I have searched the existing issues to make sure this bug has not already been reported.
  • I have checked the README for relevant information.

Bug Description

Updating a single row in a Confluence table using the confluence_update_page MCP tool with content_format set to storage results in partial table content being erased. After the update, several rows disappear and the page shows a placeholder message like:
... (rows 8 through 144 unchanged from current content) ...
This results in loss of existing table data, even though only one row was modified.

Note when content_format is set to markdown & confluence_update_page is used then update is performed correctly but macros are replaced with text & some editing is performed in other columns.

Steps to Reproduce

  1. Call confluence_get_page with the page ID containing a large table (100+ rows).
    Example:
{
  "page_id": 1053908444,
  "include_metadata": true,
  "convert_to_markdown": false
}
  1. Parse the returned page content and modify only one row in the table.
    Example change:
    Update Status column
  2. Call confluence_update_page using the modified content.
    Example:
{
  "page_id": 1053908444,
  "title": "<existing page title>",
  "content": "<updated page HTML>",
  "content_format": "storage",
  "is_minor_edit": true
}

Here issue is that content contains truncated data which results in partial update on the confluence.
4. Reload the Confluence page.

Expected Behavior

  1. Only the targeted row should be updated.
  2. All other table rows should remain unchanged.
  3. No data loss should occur.

Actual Behavior

After updating the page:
Multiple rows in the table are removed or truncated.
Confluence page displays text similar to: ... (rows 8 through 144 unchanged from current content) ...
Some rows disappear entirely.

mcp-atlassian Version

0.21.0

Installation Method

Docker

Operating System

macOS

Python Version

3.13.1

Atlassian Instance Type

Confluence Server / Data Center

Client Application

any

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions