Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-74578

Ability to disable the "Include attached files and images" checkbox when cloning a page

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Editor - Attachment
    • None
    • 2
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      In order to save disk space, it could be useful to give Confluence administrators the ability to disable the "Include attached files and images" checkbox when users copy/clone a page. 

            [CONFSERVER-74578] Ability to disable the "Include attached files and images" checkbox when cloning a page

            April added a comment - - edited

            My team has been moving spaces from old server instances into our DC instance, and this "attachments copied by default" business is a disaster.

            For example, one space before cleanup was 340 gig (yes, that's the real number!).

            We created a ScriptRunner script to delete attachments not referenced on the pages, and that same space after cleanup was 11 gig.

            Needless to say, after cleaning up all 96 spaces to be moved, that system was a tiny fraction of it's former size.

            Users do NOT understand the current attachment copy process, and it is not fair to expect them to.

            Ideally, copyAttachments would be unchecked by default, or administrators would have a configuration option for this.

            April added a comment - - edited My team has been moving spaces from old server instances into our DC instance, and this "attachments copied by default" business is a disaster. For example, one space before cleanup was 340 gig (yes, that's the real number!). We created a ScriptRunner script to delete attachments not referenced on the pages, and that same space after cleanup was 11 gig . Needless to say, after cleaning up all 96 spaces to be moved, that system was a tiny fraction of it's former size. Users do NOT understand the current attachment copy process, and it is not fair to expect them to. Ideally, copyAttachments would be unchecked by default, or administrators would have a configuration option for this.

            For completeness as I stumbled over a similar solution here; https://confluence.atlassian.com/confkb/how-to-uncheck-notify-watchers-check-box-on-confluence-editor-by-default-314449908.html 

            Just add the follwing JavaScript to the Custom HTML, End of Head area, which unchecks the checkbox after 500ms.

            <script>
            function disableCopyAttachments() {
              setTimeout(disableCopyAttachments, 500);
              if ( $('#copy-attachments').is(':checked')) {
                setTimeout(function() {$('#copy-attachments').removeAttr('checked');}, 500);
              }
            }
            disableCopyAttachments();
            </script> 

            Martin Podhovnik added a comment - For completeness as I stumbled over a similar solution here; https://confluence.atlassian.com/confkb/how-to-uncheck-notify-watchers-check-box-on-confluence-editor-by-default-314449908.html   Just add the follwing JavaScript to the Custom HTML, End of Head area, which unchecks the checkbox after 500ms. <script> function disableCopyAttachments() {   setTimeout(disableCopyAttachments, 500);   if ( $( '#copy-attachments' ).is( ':checked' )) {     setTimeout(function() {$( '#copy-attachments' ).removeAttr( 'checked' );}, 500);   } } disableCopyAttachments(); </script>

            Fully agreed on this one - maybe not even disable, but at least set it to unchecked per default!

            Despite the trainings my users got to uncheck this checkmark and only use it when they really need it, they tend to forget it. - And as they copy their old jour-fix page for a new JF they start duplicating attachments of the original page ending up with tens or hundreds of attachments behind their newly created page, hardly using a handful of them....

            Martin Podhovnik added a comment - Fully agreed on this one - maybe not even disable, but at least set it to unchecked per default! Despite the trainings my users got to uncheck this checkmark and only use it when they really need it, they tend to forget it. - And as they copy their old jour-fix page for a new JF they start duplicating attachments of the original page ending up with tens or hundreds of attachments behind their newly created page, hardly using a handful of them....

              Unassigned Unassigned
              dbedfe4c08e7 Jonathan Scarborough
              Votes:
              24 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated: