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
Hi. I want to restrict a search bar in Service Desk space in Confluence to the articles only in this space, but when I try to enter some names of documents from other spaces, it shows them. I have used "live search macro" for creating this search field and search bar but it still gives access to documents from other spaces. I tried to edit it also in live search macro settings, I chose Service desk space, but it didn't work as well. I will be glad if you could help me. I am using Confluence Cloud, by the way.
With the Live search macro, did you put @self in the Restrict to this Space Key param in the macro config ? It will restrict results to only the current space...
the doc of the macro is here: https://support.atlassian.com/confluence-cloud/docs/insert-the-livesearch-macro/
I hope it helps.
Oups I just noticed your last comment sorry... @Oxana Ermolaeva
Ah yes the macro is a bit different than in the doc, I just checked.
I tested it also with my cloud site, its working all fine for me, if I choose "Current space" in the list and results from the current space only are displayed...
@Dam May I also ask you one additional question? It's about the connection between Jira Service Desk project and this Service Desk space in Confluence. As I got it from my settings they are connected. Because when I open Knowledge base page in Help Desk project in Jira, it sends me to Help Desk space in Confluence. So, do I get it right that if I can search documents from other spaces in Confluence, customers can also search the same documents in Jira by using search bar in KB? And if I restrict searching only in one space, they also will be able to search only in one space, right?
> yes, I tried both with setting "current space" and then also by the name of the space. I`m wondering what the reason can be here.
Just to be sure... Did you publish the page after changing the macro param ? You need to change the param of the macro and then publish the page to update it, and then test the search... @Oxana Ermolaeva
It's strange cause if there was a bug with this macro it should be for all atlassian site not only you...
if you change the param in the live search macro then publish the page, and then test on the page the search, it should work ;) results of the current only will be displayed @Oxana Ermolaeva
permissions are on the space level, for users and groups... so you dont need to check permissions on the live macro itself.
There are two other ways to search within a space, in addition to the live search macro.
1. Go to the search bar on the top right of your page, and see the "Filter by Space" area. Select the space you want to search within.
2. You could also go to the page tree (the left panel of a space) and select "Pages" section. This would bring you to a space-specific search that is limited only to content in that space.
Hope this helps!