You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I am trying to set filters for space attachments using the native Confluence macro for Space Attachments.
Currently I can filter in the page for extensions or labels. This filter however is non-persistent and is lost when navigating away.
Stiltsoft - Table Filter
I have tried using the Table filter macro from Stiltsoft to set the filter. This filters the table however doesn't exclude the parts of the table that don't satisfy the filter. In this example the pages with no data show and you have to click through the pages until you get one that contains data that satisfies the query.
Stiltsoft - Table Transformer
I have tried using the table transformer macro from Stiltsoft to set the filter with an SQL query as follows:
WHERE 'Name' LIKE "%.tr5"
I need a way to SET the filter for the attachments. This would allow me to show a filtered view of attachments rather than manually searching each time.
Hi @Samuel Stephens,
My name is Katerina and I'm from the Stiltsoft team: the Table Filter and Table Transformer macros are ours. The issue with the Space Attachments macro relates to the native pagination of the macro. Unfortunately, it remains after the filtration and you may see empty pages. Other tabular macros without pagination (for example, the Page Properties Report macro) are supported by our macros well.
You're correct, I think unfortunately until the space attachments macro receives an update from Atlassian with some additional filtering features I'll be unable to do what I intend.
The point you've raised however sound like it could be a workaround perhaps. Would I be correct, in theory, assuming I could place an attachments macro inside the page properties macro and then have a page properties report to collect them all?
I had thought from using it in my previous experience that it was based on the use of page labels, in this case perhaps the #attachments label?
Unfortunately, I don't think that your workaround will be successful. The Page Properties/Page Properties Report macros collect only one-row tables, other rows are simply dropped.
Our Table Excerpt/Table Excerpt Include macros work similar to the Page Properties Report macro but collect multiple-row tables. But again we won't get rid of the native pagination.
There are also other apps on the Atlassian Marketplace that allow you to work with attachments in a more convenient way - you may browse them.
Our company also develops Smart Attachments for Confluence - you may look into it closely.
Hi @Samuel Stephens ,
using the builtin Attachment Macro you could use Filename Patterns paramter in order to define which attachments should be retrieved.
A comma-separated list of regular expressions, used to filter the attachments by file name. Note that the parameter values must be regular expressions. For example:
More information are available here https://confluence.atlassian.com/doc/attachments-macro-97911315.html. Did u try this approach?
Apologies I probably should have added this in my ‘Solutions investigated’ section.
The built in attachments macro is limited to the page it’s placed on only. I had a look at the confluence article for it and there’s no way to extend it beyond a single page scope.
I’m trying to collect all attachments in a space and filter extensions from there.