Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I customise the Livesearch macro?

Patrick Vanhoof
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 3, 2021

My requirement is to have a search box that searches in multiple spaces. The Livesearch macro searches in all spaces OR in one space.

So I was thinking to maybe write a user macro based on the Livesearch macro that allows to specify more than one space.

Is this possible? Where to find/copy the code?

Thanks!

1 answer

1 accepted

1 vote
Answer accepted
Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 6, 2021

Hi @Patrick Vanhoof 

First of all, this is not possible to set multiple spaces, here is the feature request:

Then your idea is very interessting question. But I don't think this will work. Beacuse, when you make a livesearch with one space key, this is the storage format:

<p><ac:structured-macro ac:name="livesearch" ac:schema-version="1" ac:macro-id="a838e8a7-a1b8-4d3c-9e2b-8a0f4ff0df4d"><ac:parameter ac:name="spaceKey"><ri:space ri:space-key="KEY" /></ac:parameter></ac:structured-macro></p>

 Of course you could edit the parameters, but it won't work, sadly.

I don't know, if there is any good solution.

Regards, Dominic

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events