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

Attachment Macro - Filter by multiple labels not working

    XMLWordPrintable

Details

    Description

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

      Summary

      • There are 3 cases here in the same field (Attachments label filter) of the Attachments Macro.

      Steps to Reproduce Case 1

      1. Create a space/page
      2. Attach some files
      3. Add a label to each file
      4. Edit the page and include the attachments macro
      5. While editing the macro, in the "Attachment labels", add a more than one label, following the macro description: "A comma-separated list of labels to filter by"
      6. Save it

      Expected Results

      • Shows all attachments that have such labels

      Actual Results

      • Nothing is shown

      Steps to Reproduce Case 2

      • Same as Case 1 except for:
        1. Instead of adding a single label to an attachment, add the same labels you have added in the "Attachment labels" filter as a label to the attachment.
        2. An attachment has two or more labels

      Expected Results

      • Shows all attachments that have such labels

      Actual Results

      • Shows only the attachment that has all the labels

      Steps to Reproduce Case 3

      • Same as Case 1 and 2 except for:
        1. Add more than one attachments macro in the page.
        2. Filter a single label
        3. Save it

      Expected Results

      • Shows all attachments that have such labels

      Actual Results

      • Every attachments macro that is filtered by a single label will show every attachment that has such label, including attachments that have more than one label.

      Workarounds to show specific attachments

      1. Add the same label to every attachment you want to be shown with the macro as it work normally with one label as a filter.
      2. Add more than one label to an attachment(s) and filter by the same labels in the macro.

      Workarounds to show all attachments

      1. Add the same label to every attachment you want to be shown with the macro as it work normally with one label as a filter.
      2. Do not filter it

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ajardim Artur J
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: