Macros are not restored on confluece content download from page A and upload to page B

velmurugan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 24, 2020

I am trying to automate confluence content update. I have a page A with different macros (div, info and warning). My requirement is to get the data from page A, process the data and Update the processed data in Page B (empty page). 

I am using python script for this workflow. Below are the steps involved

  • requests.get() to get the raw html content from PAGE-A,
  • fetch main-content div with beautifulsoup
  • process main-content
  • upload the processed data to PAGE-B using using confluence.update_page().

The issue is, Macros are not restored while uploading the content to page B.

Appreciate your help on how to handle macros on rest api get page info and put the page content to another page without loosing the macros property?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events