Paste image as a Confluence Attachment

We are migrating our old wiki pages into Confluence and we noticed an issue: new employees couldn't see a lot of the images.  Eventually we found out this was because they weren't logged into the old system.  We would like to terminate the old system but can't if we still need to add employees to it.  We need a way to convert the image references to attachments in Confluence.

1 answer

1 accepted

This widget could not be displayed.

Hi... I thought this would be an easy task but actually it turned out, not so much.

There is much more code here than I would hope an SR user would have to write. Also there are many different ways of doing this, perhaps my way is not the best. It does work, but I feel like I'm missing a trick.

The code is here: https://gist.github.com/jechlin/6d3b4b8105fc4d2bf1ae6d9c22c64923

Modify the two variables in the CONFIG section, and then run in the script console. I would start with a CQL query that selects a single page, on your test instance, then a space, then the whole lot.

If the old system requires http basic auth put in the credentials at about line 141, if it's some other kind of auth then contact us.

 

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

509 views 7 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you