Hi everyone,
I’m having an issue with automatically creating Confluence pages based on a custom Confluence template (Confluence Data Center/Server, not Cloud) and I’m hoping you can help.
The created page renders correctly in view mode. But as soon as you click Edit, the editor shows the content as completely empty (as if the page body wasn’t stored).
Workflow (simplified)
-
HTTP Request (GET): Fetch Confluence template
GET /rest/experimental/template/{{templateId}}?expand=body.storage,version -
Code: Replace template variables + insert macros (incl.
jiraIssueMacroandjiraFilterMacro) -
HTTP Request (POST): Create Confluence page
POST /rest/api/content
Error message
No error message. The POST request succeeds, the page is created and displays correctly in view mode, but in edit mode the editor is empty.
Question
Does anyone have an idea what could cause this, or how the body needs to be sent so that the content is also available in edit mode?
If needed, I can share more details in an anonymized form.
Thanks!
Information on your n8n setup
- n8n version: 2.8.3 self-hosted



