When only one result found in a search, open the page instead?

Robert Ryks December 30, 2022

I am developing some diagram-based navigation tooling that will, hopefully, end up opening a page in confluence.

I know I could use the URL like:
https://mywiki.com/confluence/display/MYSPACE/Diagram+Navigation+Prototype

The problem I have is I don't wish to specify a URL directly as it would be a maintenance headache... things change, people move pages, etc.  Instead, I want to use label-based navigation.   Today we are constantly chasing broken page references.

 

So I do a search such as:
https://mywiki.com/confluence/dosearchsite.action?queryString=spacekey:MYSPACE AND labelText:ThisLabel AND labelText:ThatLabel

The result is a single item in the list.

But, I don't want a list! 
If it is a single item, is it possible to just have the page open instead of providing a list?


 

1 answer

1 vote
Clark Everson
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 30, 2022

Hi @Robert Ryks 

Welcome to the community! Confluence doesn’t have that ability out of the box. to my knowledge there are no plugins for it. Even with jira this isn’t an option either. Labels really are just meant for index searching

I do see you’re on server though, and server is being deprecated in 2024. I know that urls work as you describe in server however urls in cloud do automatically redirect so I would recommend looking into cloud and then using URLs, rather than moving to data center

 

this is the feature I’m referring to. For server Atlassian closed it out as not being considered, so this is a cloud only feature

https://jira.atlassian.com/browse/CONFCLOUD-2906

Robert Ryks December 30, 2022

We are on the journey to move to the cloud offering.  It will be quite soon (march) but the feature I was digging for was not really that specific to the type of install so I selected what we are running today.

Using a direct URL is still messy and prone to failures.  It also means the person doing work in one area needs to go update some link they may not even know exists.  I will see what other options I can find but not having a graphical way to navigate is a bit of a hassle in Confluence.  I recognize it needs to be a universal tool.

 

Thanks for the help!


Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events