Automate Confluence attachments

Pushpkant Garg June 26, 2016

We have a file (PDF) that is automatically generated daily, and made available in a shared drive.

Is it possible for Confluence to automatically attach/embed this file to a particular page each day (and replace the previous one)? 

2 answers

1 accepted

0 votes
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 27, 2016

You can use addAttachment from Confluence Command Line Interface (CLI). If it already exists, it will add as a new version. If you only want one version, use removeAttachment first. 

Another approach is to keep a limited set of versions by using removeAttachmentVersions with a limit parameter.

0 votes
Steven F Behnke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 26, 2016

How is it generated? It's possible to attach files to Pages via the API.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events