Details
-
Bug
-
Resolution: Not a bug
-
Low
-
None
-
5.7.5, 5.9.4, 1000.39.0
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
- Create a space/page
- Attach some files
- Add a label to each file
- Edit the page and include the attachments macro
- 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"
- 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:
- 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.
- 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:
- Add more than one attachments macro in the page.
- Filter a single label
- 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
- 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.
- Add more than one label to an attachment(s) and filter by the same labels in the macro.
Workarounds to show all attachments
- 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.
- Do not filter it
Attachments
Issue Links
- is related to
-
CONFCLOUD-53588 Attachment Macro - Filter by label is not working
- Closed
- relates to
-
CONFCLOUD-41228 Attachment Macro - Filter by multiple labels not working
- Closed