Skip to content

[Feature]: create and update date in confluence page analysis #965

@av-leschinskiy

Description

@av-leschinskiy

Is your feature request related to a problem? Please describe.

Prerequisites

Bug Description

The ConfluencePage model defines created and updated fields, and the from_api_response() method correctly parses them from history.createdDate and history.lastUpdated.when. However, the API calls in pages.py never include history in the expand parameter, so these fields are always empty strings.

Root cause: In get_page_content() and get_page_history() (both v1 and v2 paths), the expand parameter is:

expand="body.storage,version,space,children.attachment"

It should also include history,history.lastUpdated so the Confluence API actually returns the timestamp data that the model is already designed to handle.

Note: This is different from #897, which is about inline Date macros inside page content. This issue is about page-level metadata timestamps (when the page was created and last updated).

Steps to Reproduce

  1. Set up mcp-atlassian with Confluence Server (token/basic auth)
  2. Call confluence_get_page for any page
  3. Observe that created and updated fields in the response are empty strings

Describe the solution you'd like

Expected Behavior

The created and updated fields should contain ISO 8601 timestamps, e.g.:

  • created: "2025-01-15T10:30:00.000+03:00"
  • updated: "2026-02-20T14:45:00.000+03:00"

Actual Behavior

Both created and updated are always empty strings (""), because the Confluence REST API does not return history data unless explicitly requested via expand.

Describe alternatives you've considered

Proposed Fix

Add history,history.lastUpdated to the expand parameter in get_page_content() and get_page_history():

# Before
expand="body.storage,version,space,children.attachment"

# After
expand="body.storage,version,space,children.attachment,history,history.lastUpdated"

I have verified this fix works on Confluence Server by patching the installed package and can submit a PR.

mcp-atlassian Version

latest (Docker image)

Installation Method

Docker

Operating System

Windows 11

Atlassian Instance Type

Confluence Server

Client Application

Claude Code (CLI)

Use Case

No response

Additional Context

Workaround: patching the Docker image with sed to add the missing expand fields. Happy to submit a PR with the proper fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions