Forums

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

Search for pages used in the include page macro

Cuno von Reitzenstein April 25, 2018

Hello,

Is there a possibility to create a Confluence-search that results all pages that were included with the include-page-macro within other pages ?

For example: I have a page "A" where page "B" is included. Now i want to search for page "A" via "macroName:include" and page "B" as included page in page "A"

Thanks for your help!

3 answers

1 vote
Cuno von Reitzenstein January 31, 2019

Hi,

Can you give me some kind of feedback, please?

Thanks!

Cuno

1 vote
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 25, 2018

Hi - I am not sure I understand properly. If the search finds page A then page B will already be displayed on page A via the include page macro. What would the ideal search results look like? I am curious to hear more about your use case, as far as what the user requirements are and what the user doing the search needs to accomplish with the results.

Cuno von Reitzenstein April 26, 2018

Hi,

It should be like a JQL that gives you a list of Parent issues for certain criteria and for each Parent issue the belonging sub-issues.

To come back to Confluence, the search result should look like:

  • Page A (which has an include page makro)
    • Page B ( That is the page included in Page A)
  • Page C (which has an include page makro)
    • Page D (That is the page included in Page C)
  • and so on...

So the user can see which pages are used within the other pages.

Rafael Lopes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2022

Exactly, if /include page has been used in the past and we have to now change the content of the imbedded content to be different on some of those pages and not others -- meaning we will now create two separate /include pages of content and attach some of those to some pages and the new ones to another set of pages. In order to find all the pages that have the original included content which now must be edited, having a search for pages include each separate included content items is important. 

0 votes
Rafael Lopes
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2022

I found another thread that provided some search tips. Try this...I think it works 

Type this into your search field at top of the page to display all pages that appear to have the imbedded content:

/include page _Ear Exceptions

where "_State Exceptions" is the /include page content that has been inserted into multiple pages. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events