Is it possible to somehow automate the upload of a file to the Confluence page?
Now the process is as follows: The page moderator enters edit mode, removes the old file from the page and adds a new one, then saves the page.
Is there a tool (possibly a separate development, e.g. SIL Script) to automate this process?
Community moderators have prevented the ability to post new answers.
you can use script runner, I'm guessing something like that will work:
def filePath ="file path"
File file = new File(filePath)
if (file.exists()){
InputStream targetStream = new FileInputStream(file);
Attachment att = new Attachment(imgName,"png", file.length(), "UML image");
att.setContent(page)
attachmentManager. saveAttachment(att,null, targetStream)
}
Thanks for the answer, we will try.
Friends, if you have any more ideas, please write. Thank!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.