Forums

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

About errors when refreshing the confluence page

青山 明
Contributor
February 20, 2022

I want to update the confluence page. When I tried to get the {{body.storage}} data of the page to be updated as below and update its contents, an error occurred in the double quotation part of "details". As the definition of API, I think that it is necessary to escape because it is surrounded by double coating like "value": "{{body.storage}}". Is there a way to escape?

 

{{body.storage}}:

value = <p /> <p /> <ac: structured-macro ac: name = "details" ac: schema-version = "1" data-layout = "default" ac: local-id = "43d00a26-f1c8" -4aff-aac1-8e2e01ab48af "ac: macro-id =" b8fd8013-6d21-4966-9497-6dc605cc3856 "> <ac: rich-text-body> <table data-layout =" default "ac: local-id =" bd85e98a-27b9-437f-8332-33d136701948 "> <colgroup> <col style =" width: 323.0px; "/> <col style =" width: 323.0px; "/> </ colgroup> <tbody> <tr> <td> <p> test1 </ p> </ td> <td> <p> 12345 </ p> </ td> </ tr> <tr> <td> <p> test2 </ p> </ p> td> <td> <p> abcdefg </ p> </ td> </ tr> </ tbody> </ table> </ ac: rich-text-body> </ ac: structured-macro>, representation = storage, embeddedContent = [], _expandable = {content = / rest / api / content / 4260110}}

1 answer

0 votes
Pramodh M
Community Champion
February 20, 2022

Hi @青山 明 

You could surround the data with single quotes or where ever the special character comes in use the URL Encoding that may reduce the errors with quotes

Using a single quote is recommended way

May I know where exactly you are facing the problem or what error you are getting?

青山 明
Contributor
February 20, 2022

It's a single quotation, but is it as follows? However, I tried this method, but it was NG.

"value":'{{body.storage}}'

青山 明
Contributor
February 20, 2022

Your answer is not helpful. Ask for the answers of others.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events