I am trying to automate the creation of Confluence pages using n8n workflows (making use of the Confluence API). Would it be possible that when adding Jira tickets (via URL), they are automatically copied as inline cards on the Confluence page?
Hmmm, you can try to use Atlassian Document Format (ADF) in your page body for this @Álvaro Boza 👀
I haven't tested this properly, but you could try using something like this:
{
"type": "page",
"title": "Example Page",
"space": { "key": "SPACEKEY" },
"body": {
"editor": {
"value": "{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[{\"type\":\"inlineCard\",\"attrs\":{\"url\":\"https://your-domain.atlassian.net/browse/ISSUE-KEY\"}}]}]}",
"representation": "atlas_doc_format"
}
}
}
The key thing here is using the "inlineCard" node.
Here's this JAC feature request that also mentions improvements in this area, just related to automation: AUTO-2100: Improve Automation for Creating Confluence Pages from Jira Issues
Cheers,
Tobi
Hi,
Inline Jira cards (Smart Links) cannot be created directly via the Confluence API.
Workarounds:
• Add the Jira issue URL in the page — Confluence will auto-convert it to an inline/card link when viewed or edited
• Use the Jira Issues macro in the API page body (storage format) to display issues
• Create the page first, then open/edit and save it once to trigger Smart Link conversion
Note: Smart Link cards are generated by the Confluence editor, not the API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.