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

How to add image files from a excel file to the confluence attachments using script

Nachikethas E December 11, 2022

I was writing a script for automatically updating the data in the confluence page

Now I need to add some of the image file (png) to confluence page

1. I cannot directly take from the local storage 

2. I need to add images in the confluence attachments and then I need to add the file in confluence

 

For the second option I need to know how I can add images from my excel file directly to confluence attachments using script

1 answer

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 12, 2022

This is the documentation of the REST API call which creates a new attachment:

https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content---attachments/#api-wiki-rest-api-content-id-child-attachment-post

As you see you have to pass the attachment content in the request body. For that, you have to be able to read that from the Excel file.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events