Forums

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

Does Confluence search present results from multiple versions of a page?

Robb Wiedrich
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!
May 30, 2018

If a given Confluence page has multiple versions, does a search return search hits from older versions?

 

Example:  I list a JIRA Issue in a Confluence page set up to track tasks.  In subsequent meetings that JIRA issue is closed and is removed from a newer saved version of the Confluence page.  I eventually want to search and find when that Issue was discussed and the notes associated with it?

 

Will the search find that version of the Confluence page where the JIRA issue was discussed?

 

If not, do you have a suggestion on how to find content like this?

2 answers

0 votes
Davin Studer
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 30, 2018

Only current pages are returned in the search results, but if you have access to running SQL you could do something like this ...

declare @searchTerm nvarchar(512)

set @searchTerm = 'ac:name="jira"' -- <-- Put your search term here

select
    case
        when C1.PREVVER is null then S1.SPACEKEY
        else S2.SPACEKEY
    end SPACEKEY,
    C1.TITLE,
    C1.[VERSION],
    case
        when C1.PREVVER is null then C1.CONTENTID
        else C2.CONTENTID
    end CONTENTID
from CONTENT C1
left outer join CONTENT C2 on C1.PREVVER = C2.CONTENTID
inner join BODYCONTENT B on C1.CONTENTID = B.CONTENTID
left outer join SPACES S1 on C1.SPACEID = S1.SPACEID
left outer join SPACES S2 on C2.SPACEID = S2.SPACEID
where C1.CONTENT_STATUS = 'current'
    and C1.CONTENTTYPE = 'PAGE'
    and B.BODY like '%' + @searchTerm + '%'
order by SPACEKEY, C1.TITLE, C1.[VERSION] DESC
0 votes
Manon Soubies-Camy
Community Champion
May 30, 2018

Hello Robb and welcome to Community!

There was a feature request: Add ability to search historical pages and attachments, but Atlassian replied they wouldn't do it. As far as I know, there isn't any add-on answering your need.

A workaround might be to use the hide-if macro from Visibility (free app) and store there your previous Jira issues and comments. They would not be shown when viewing the page, but still be searchable since content is indexed.

Hope this helps,

- Manon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events