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
Hello, I am setting up confluence for my organization so i'm new here :-)
I have a business need to be able to search in my space where some "keywords" are used in the content of the page (not in the labels).
Here is more detail :
- some pages of my space have tables describing fields of screens of a software we use (one line per field)
- in these tables there is a column for which I'll input only 2 possible values : XXX or YYY
I would like to know how I can later have a page displaying all the fields that have the value XXX for that column in all the pages of my space.
As I read through some other topics, this seems not really possible or no so easy, so any suggestion on how to reach a similar goal is welcome :-)
I also thought about using the macro include page when I need to write XXX, but then I need a way to retrieve all the lines where that macro has been included.
Thanks a lot for the support !
Hello there, @Adrien . I would like to first welcome you to our community, the more the merrier!
So, you were pretty close to achieving what you need. The spirit of using macros is right, but we will need to use another duo of macros. Here they are:
For server documentation, take a peek here:
Saying that we can use some macros is not enough. This requires some explanation. This duo of macros works as a group. The Page properties macro should contain a table with a set of keys and values.
Keys are the names for each value that we need to define. The values are the part where we most likely want to show in our reports. In pages where we have the page properties, we will also need to define a label for future reference.
The page properties report macro is the macro that will actually create a grouping of all the values from pages that have the pre-defined page properties. The page properties report will need to look into the label we created earlier.
One limitation is that we can only show one line of values. One line or a row is what is pre-defined to be the title line and another line or row is pre-defined as values.
So, here is how could proceed:
- Create the desired page
- Insert a Page properties macro
- Insert a table inside this macro
- Define titles and values in that table
- Publish the page
- Define an appropriate label for this page
- Create a new page
- Insert the Page properties report macro
- Define which label the macro should look for
- Define which space the macro should be looking into
- Save the macro
- Publish the page
The approach I present above is to work if you define the XXX or YYY inside those Page properties macro table. If you do so, their values should be displayed within the Page properties report macro as well. The values the report macro displays are automatically updated based on the pages where they originate from.
Adrien, I hope this serves as some guidance for you! Looking forward to your reply.
Hello @Diego , thank you very much for your detailed answer :-)
I understand the proposal and I think it might help but let me explain a bit more the request in order to be sure it can match the proposal.
Because as I read your example, I think that in my case the XXX or YYY are actually the "values" in your explanation, not the "keys" so not sure how this would work.
For instance, imagine the below table is defined in multiple pages in my space and adapted for each page (the parameters will be different) :
Parameters | isVisible?
Param1 | YES
Param 2 | NO
Param 3 | YES
So what I will need to provide as a report or so at the end of the day is a list of all the parameters for which the "isVisible" column is set to YES.
So it's easy for the business to visualize all the "Visible parameters" as a whole list.
I fear this is reaching the limitations of Confluence, but I'm open for any suggestion :-)
Thanks a lot again for the warm welcome and support !
Hello again, @Adrien !
Thanks for keeping the thread alive. You are right, your use case does go beyond the abilities of our macro.
Maybe some third-party is what you need to tackle this situation! Here, take a look at a couple of suggestions:
Datatables for Confluence is available exclusively for Confluence Cloud, so if you are running a self-hosted version of Confluence, this plugin is not an option.
Let us hear from you, Adrien! Glad to have you here in our community.