Confluence CLI

Pradeep L January 29, 2020

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
Amulya Akula {Appfire} January 30, 2020

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

Pradeep L January 30, 2020

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>.

Pradeep L January 30, 2020

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

Amulya Akula {Appfire} January 31, 2020

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

0 votes
Amulya Akula {Appfire} January 30, 2020

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

0 votes
Amulya Akula {Appfire} January 30, 2020

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
AUG Leaders

Atlassian Community Events