Searching archived content
Asked by Neta Knyazhansky Caspy:

Hello,

When I choose to search archived content, does it include historic versions of a non-archived page?  
If not, how can I search that?

We have a page to track a certain process, when we're done with part of it, we delete it and rely on the page's history in case we need to investigate what happened and when.  
When searching now, including archived content, nothing comes up, but when I go to the page's history, I do find what I was looking for.

Thanks


Answers:
author: Darryl Lee
body: Hm. Interesting suggestion [@Evercross evo8e](/t5/user/viewprofilepage/user-id/5197054), although the [Wayback Machine](https://web.archive.org/) only works on publicly-accessible websites. I would venture to guess that most Confluence sites are **not** public.

To your question, [@Neta Knyazhansky Caspy](/t5/user/viewprofilepage/user-id/4963085) - search does not include earlier versions of a page, whether or not it is archived.

That is an interesting use case you've described. If your case is that you frequently need to search through the history of a page, I kind of feel like the process (although I don't like it) would be to:

1. Rename the old page to - "Page Title - 04/16/2023"
2. Copy the page, and rename it to "Page Title"
3. Archive the old page.

Ugh. That's... cumbersome.

I wonder if the new [Automation for Confluence](https://support.atlassian.com/confluence-cloud/docs/what-is-confluence-automation/) might be able to make this easier. Checking now...

comments: author: Darryl Lee
body: For fun, I made an Automation rule to do the kind of copy/archive operation that would facilitate searching through Archived pages.

Unfortunately Automation does not currently have an "Edit action", nor is the actual content of a page (the "body") available as a Smart Value. So I ended up having to make two web requests to the [Confluence REST API](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-put): one to **get** the current body of the page, and a second one to update the title.

What else -- oh right, required parameter "status" doesn't actually do anything when changed to *archived*, so I have to have another branch to actually archive the old page.

Lastly - unlike in Jira, there's no way to manually trigger automation rules from a given page, so I used a label, "archivenow".

At any rate, I got to learn a lot more about Automation for Confluence, and one thing I learned is that without a {{page.body}} Smart Value and an "Edit page" action, it's pretty limited. Here's a copy of the rule:

![Screen Shot 2023-04-16 at 6.31.08 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/252104i9D78DA83709FA2EB/image-size/large?v=v2&px=999 "Screen Shot 2023-04-16 at 6.31.08 PM.png")


author: Neta Knyazhansky Caspy
body: Thank you so much for your thorough answer, [@Darryl Lee](/t5/user/viewprofilepage/user-id/1365322)  
I really appreciate it and happy you got to learn from it as well.

Is there a quick way to merge historic versions?  
So I could create one "master" version to copy and archive, then go on as you so kindly explained.


author: Darryl Lee
body: When you said "merge historic versions" I keep thinking about the built-in Page History.

But this history is not searchable.

I like the idea of maybe somehow "nesting" the archived pages under a parent, so you can easily see all the versions.

Alas, Archived Pages are (annoyingly) all thrown in a flat file structure. No hierarchy is preserved or available. So this is also a no-go. :-/


author: Neta Knyazhansky Caspy
body: Thank you!!


Tags: cloud

confluence-cloud