Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I search for the use of a macro within a space.

Leanne Leanne May 5, 2015

How can I search a confluence space to find all the instances where a macro is used?

 

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Nelson Carranza May 5, 2015

Hi,

 

This has been answered here https://answers.atlassian.com/questions/59203

Add * after macro name, so it will look like this macroName:xxxxx* AND spacekey:key_of_the_space

(I saw more results after adding * )

 

 

2 votes
Panos
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.
May 5, 2015

Using the default search, you can search with the query:  

macroName:xxxxx AND spacekey:key_of_the_space
0 votes
IshanL
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.
May 5, 2015

you can use below query. Pls replace XXXXX with macro name.

Select CONTENT.CONTENTID, Title, SpaceID, CREATOR, LASTMODDATE
from CONTENT, BODYCONTENT
WHERE
PREVVER IS NULL
AND CONTENT.CONTENTID = BODYCONTENT.CONTENTID
AND CONTENT_STATUS = 'current'
AND ((BODY like '%{add-page-form%')  OR (BODY like '%<ac:macro ac:name="XXXXX">%') OR (BODY like '%<ac:structured-macro ac:name="XXXXX">%'))

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events