I am able to update a page using this:
confluence.update_page(my_page, my_title, my_body, parent_id=my_id,
type='page', representation='storage', minor_edit=False)
I would like to add visible images (much like I do with pasting images in manually)
I've tried this:
filename = 'images/conc_v_input.png'
confluence.attach_file(filename, page_id=my_page)
and this:
Which doesn't work since the image is only available on my computer. I also don't want the image there as a link, but as an actual image.
Eventually I would like to add tables too, if someone could point me to that.
filename = 'images/conc_v_input.png'
confluence.attach_file('images/conc_v_input.png', page_id=test_analysis)
image = '<ac:image> <ri:attachment ri:filename="conc_v_input.png" /> </ac:image>'
confluence.append_page(my_page, my_title, image, parent_id=test_analysis,
type='page', representation='storage', minor_edit=False)
Ideally I would like something where I can add multiple images with
new_image = {filename: 'image.png', title: 'My cool image', description:'something to say about the image'}
my_body = my_body+new_image
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
edit: Looked into it a little bit today and figured something out that works, figured i'd share. Info is on another post you made.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unlock your potential and learn how to use Jira Product Discovery to your advantage. You’ll have the expertise to revolutionize ideas and insights, roadmapping, engage and align teams and stakeholders, and deliver the best solutions—faster. Enroll today!
Start Learning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.