• 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.

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      The attachments macro should have a option to exclude some attachments patterns from the list such as Display all files except .jpg files for example.

            [CONFSERVER-29082] Attachments Macro to Exclude Filename Patterns

            Thank you for raising this suggestion.
            We regret to inform you that due to limited demand, we have no plans to implement it in the foreseeable future. In order to set expectations, we're closing this request now. Sometimes potentially valuable tickets do get closed where the Summary or Description has not caught the attention of the community. If you feel that this suggestion is valuable, consider describing in more detail or outlining how this request will help you achieve your goals. We may then be able to provide better guidance.
            For more context, check out our Community blog on our updated workflow for Suggestions
            Cheers,

            Confluence Product Management

            Adam Barnes (Inactive) added a comment - Thank you for raising this suggestion. We regret to inform you that due to limited demand, we have no plans to implement it in the foreseeable future. In order to set expectations, we're closing this request now. Sometimes potentially valuable tickets do get closed where the Summary or Description has not caught the attention of the community. If you feel that this suggestion is valuable, consider describing in more detail or outlining how this request will help you achieve your goals. We may then be able to provide better guidance. For more context, check out our Community blog on our updated workflow for Suggestions Cheers, Confluence Product Management

            Christian Rust added a comment - - edited

            Works great but if I add a second extension this works like a logical OR. How can I make an AND?
            EDIT: Solved .*.[^(pdf)|^(png)]$

            Christian Rust added a comment - - edited Works great but if I add a second extension this works like a logical OR. How can I make an AND? EDIT: Solved .*. [^(pdf)|^(png)] $

            Will this work with JIRA? If so where can I add it?

            Brent Forgeron added a comment - Will this work with JIRA? If so where can I add it?

            Kienz added a comment - - edited

            Without the backslash it works:

            {attachments:patterns=.*.[^(pdf)]$}
            

            Thanks a lot!

            Kienz added a comment - - edited Without the backslash it works: {attachments:patterns=.*.[^(pdf)]$} Thanks a lot!

            I am running Confluence version 5.0.3 and it works.

            Try the storage format:

            <p><ac:macro ac:name="attachments"><ac:parameter ac:name="patterns">.*.[^(pdf)]$</ac:parameter></ac:macro></p>
            

            Sergej Schlund added a comment - I am running Confluence version 5.0.3 and it works. Try the storage format: <p><ac:macro ac:name= "attachments" ><ac:parameter ac:name= "patterns" >.*.[^(pdf)]$</ac:parameter></ac:macro></p>

            Kienz added a comment -

            This doesn't work.

            Kienz added a comment - This doesn't work.

            HI,

            just try this here:

            {attachments:patterns=.*\.[^(pdf)]$}
            

            This patterns except all '.pdf' files.

            Sergej

            Sergej Schlund added a comment - HI, just try this here: {attachments:patterns=.*\.[^(pdf)]$} This patterns except all '.pdf' files. Sergej

              Unassigned Unassigned
              rgadami Rodrigo Girardi Adami
              Votes:
              12 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: