Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

I can't update my page if the content include char '&'

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

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

261 views 5 9
Read article

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