Dear Friends
I got a problem when I update my page if the content include char '&'
the response is "No space or no content type, or setup a wrong version type set to content, or status param is not draft and status content is current"
The Code:
def send_to_confluence(page_id, title, applicant, product_name, verSion, change_content, approval, OA_ID, date):
append_body = '<tr><td>'+product_name+'</td><td>'+verSion+'</td><td>'+date+'</td><td>'+change_content+\
'</td><td>'+approval+'</td><td>'+applicant+'</td><td></td><td>'+OA_ID+'</td>' \
'</tr></tbody></table><p class="auto-cursor-target"><br /></p>'
content = content + append_body
try:
result1 = confluence.update_page(page_id, title, content, version_comment=None, type='page',
representation='storage')
except BaseException as e:
print(e)
else:
print(result1)
Thanks & Best Regards
Tang
The Version of confluence is 6.13.0