STEP-1
Go to Confluence Settings right top corner → Apps → CircleCI Connector.
Generate CircleCI Personal Token
STEP-2
Go to CircleCI App → Click Workflow → Copy URL from Browser.
Go to Confluence Page choose Macro CircleCI Workflows → Edit.
Demo URL - https://app.circleci.com/pipelines/circleci/XDdt1udpVDhwyqap3tCrAY/CoWCXxcQEymmDVoEgBD3yp
That's It.
Below is demo.
We don't have a way to export this macro.