# Informing users that they landed in an Archived space

**URL:** <https://forum.library.adaptavist.com/t/informing-users-that-they-landed-in-an-archived-space/559>\
**Category:** ScriptRunner\
**Tags:** confluence, data-center\
**Created:** [January 30, 2025, 10:05am UTC](https://forum.library.adaptavist.com/t/informing-users-that-they-landed-in-an-archived-space/559 "2025-01-30T10:05:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MoonShine](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MoonShine](https://forum.library.adaptavist.com/u/MoonShine)\
**Post date:** [January 30, 2025, 10:05am UTC](https://forum.library.adaptavist.com/t/informing-users-that-they-landed-in-an-archived-space/559/1 "2025-01-30T10:05:07Z")

</div>

Hello, I’m looking for a way to automatically change the look of spaces that are set to Archived. I have trouble finding any useful methods in Groovy for that.

Any of the following would be nice =\>

- Change the header/footer of the space via “look and feel” settings
- Change the Style sheet
- Some kind of watermark?

I’d like it to be obvious for someone that is following a link to an archived space to understand that they are looking at old information and that the links need to get updated.

Any sugestions ?

---

<div class="post-metadata">

**Author:** ![nikolayr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.library.adaptavist.com/nikolayr/32/254_2.png) [@nikolayr](https://forum.library.adaptavist.com/u/nikolayr)\
**Post date:** [February 6, 2025, 10:50pm UTC](https://forum.library.adaptavist.com/t/informing-users-that-they-landed-in-an-archived-space/559/2 "2025-02-06T22:50:30Z")

</div>

Hi Hans,  
take a look at provided example scripts in Fragments section of ScriptRunner for Confluence. I’ve modified example script named: Add a banner for only a certain group to see

You need to create Fragment type:Show a web panel  
Location: atl.confluence.header  
key: group-banner-pane  
Menu text: Example Banner  
Weight: 1

Condition script:

```auto
return context.space.getKey() in ["SPACEKEY"]
// update SPACEKEY wit ket of archived space.

```

Provider/classscript use the following code

```auto
import com.onresolve.scriptrunner.canned.util.OutputFormatter

writer.write(
    OutputFormatter.markupBuilder {
        div(style: 'display: flex; justify-content: center; font-size: 20px; background: yellow;') {
            a(href: 'https://kb_article_what_does_archived_space_means', target: '_blank', 'Archived Space')
        }
    }
)

```

on attempt to see space with key SPACEKEY, scriptrunner will generate Yellow banner on the top of the page.

Hope this helps.
