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
- Set up mcp-atlassian with Confluence Server (token/basic auth)
- Call
confluence_get_page for any page
- 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.
Is your feature request related to a problem? Please describe.
Prerequisites
Bug Description
The
ConfluencePagemodel definescreatedandupdatedfields, and thefrom_api_response()method correctly parses them fromhistory.createdDateandhistory.lastUpdated.when. However, the API calls inpages.pynever includehistoryin theexpandparameter, so these fields are always empty strings.Root cause: In
get_page_content()andget_page_history()(both v1 and v2 paths), the expand parameter is:It should also include
history,history.lastUpdatedso the Confluence API actually returns the timestamp data that the model is already designed to handle.Steps to Reproduce
confluence_get_pagefor any pagecreatedandupdatedfields in the response are empty stringsDescribe the solution you'd like
Expected Behavior
The
createdandupdatedfields 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
createdandupdatedare always empty strings (""), because the Confluence REST API does not return history data unless explicitly requested viaexpand.Describe alternatives you've considered
Proposed Fix
Add
history,history.lastUpdatedto theexpandparameter inget_page_content()andget_page_history():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
sedto add the missing expand fields. Happy to submit a PR with the proper fix.