Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Update Confluence page automatically

Rajat Gupta March 18, 2016

Hi,

My script generates a csv file in format say:

project1,owner1,details1

project2,owner2,details2

 

How do I update a confluence page using rest api's commands with this data? Preferably, I would like to use a bob swift cvs table on my confluence page and update the cvs data using the rest api command.

Suggestions please.

 

Thanks

 

 

1 answer

1 accepted

1 vote
Answer accepted
Bob Swift
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2016

Unless you want to do the programming yourself, it would be much easier to use the Confluence Command Line Interface (CLI) to upload the file in wiki format. Especially easy if your CSV is in a file:

--action storePage --space XXX --title "My page" --content "{csv}" --file myFile.csv --content2 "{csv}"

The file content is included after content and before content2.

An alternative is to use addAttachment to add the file as an attachment and store the page with the wiki markup for the csv macro that accesses the csv from an attachment. 

Make sure your script is producing valid CSV as defined in the reference on CSV Macro.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events