It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence CLI Edited

I am pulling page content from html and creating pages using confluen cli. The new page creates same as the source page. But the problem is, if i wanted to edit the content it is showing is in html format. Is there any way that i could edit directly. what options do i have under --content. What other format files could i create. 

 

./acli.sh --action storePage --space xxxx --parent xxx --title "$i" --file xxxx.html --content "{html}" --content2 "{html}" --server xxxxx --user xxx --password xxxx

3 answers

1 accepted

0 votes
Answer accepted

Hi @Pradeep L ,

We are from the BobSwift support team. Thank you for raising request with us.

We would like to inform you that we have created a support request on your behalf in our portal.

https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-3474

Please signup to our portal to access the support request and further discussion on the ticket.

We are able to add the HTML content to the new Confluence page without the HTML code by appending --noConvert in the CLI action.

Please try the below CLI action and let us know if you face any issues.

--action storePage --space "zclispace" --parent "ztestpage" --title "XXXX" --file "XXXX.html" --noConvert

Regards,
Amulya Akula

Thank you @Amulya Akula _Appfire_ , I got a parsing error but it did work after converting the html to xhtml online. I will find a way to convert through some command line utility. 

Remote error: Error parsing xhtml: Unexpected close tag </a>; expected </img>.

I am unable to access the portal, it says No access. 

Hi @Pradeep L ,

You should be able to access it now using the below link:

https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-3474

 

Regards,
Amulya Akula

Hi @Pradeep L ,

We are from the BobSwift support team. Thank you for raising the request with us. 

We would like to inform you that we have created a support request on behalf of you in our portal.

https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-3474

Please signup to our portal to access the support request and further discussion on this ticket.

We are able to add the HTML content to the new confluence page without the HTML code by appending --noConvert in the CLI action.

Please execute the below CLI action in your instance and let us know if you face any issue.

--action storePage --space "zclispace" --parent "ztestpage" --title "XXXX" --file "XXXX.html" --noConvert

 

Thanks,
Amulya Akula

Hi @Pradeep L ,

We are from the BobSwift support team. Thank you for raising the request with us. 

We would like to inform you that we have created a support request on behalf of you in our portal.

https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-3474

Please signup to our portal to access the support request and further discussion on this ticket.

We are able to add the HTML content to the new confluence page without the HTML code by appending --noConvert in the CLI action.

Please execute the below CLI action in your instance and let us know if you face any issue.

--action storePage --space "zclispace" --parent "ztestpage" --title "XXXX" --file "XXXX.html" --noConvert

 

Thanks,
Amulya Akula

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

3,138 views 4 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you