Forums

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

Closable banner for Confluence (per user)

Dominic Lagger
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.
October 7, 2020

Hi all

My goal is to display a closable banner for confluence, which every user can close and accept. I know, I can do it with this type of message: 

<div class="aui-message closeable aui-message-warning">
<p>Message</p>
<button class="aui-icon icon-close" tabindex="0" aria-label="Close"/>
</div>

But this message appears every time a refresh happens for every user. 

I also know there are plugins for this like "Announce for Confluence". 

But I want to do it by myself. Is there any possibilty by scripting? We have ScriptRunner.

Thanks for every input.

Regards, Dominic

2 answers

1 accepted

2 votes
Answer accepted
Dominic Lagger
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.
October 12, 2020

Hi all

I made a few scripts with ScriptRunner and achieved my goal :-) 

I've made an article in here: Confluence Banner with ScriptRunner 

Regards, Dominic

0 votes
Niranjan
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.
October 7, 2020

Hi @Dominic Lagger ,

A simple option would be to use fade-out option instead of closable. 

"aui-message fadeout"

Dominic Lagger
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.
October 7, 2020

Thanks @Niranjan 

This looks cool, but the message comes up every time you refresh. My goal is, that the user has to click away the button and after a refresh, this specific user doesn't get any message again.

Niranjan
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.
October 7, 2020

Hi @Dominic Lagger ,

Not sure, but I believe that it would need a javascript to validate user session. If I were you, I would not spend much effort on it as it is not a value add (at least for me). You can ensure to make the the banner message short and sweet  which can make users happy :)

Bill Bailey
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.
October 7, 2020

Yeah, does sound like a Javascript thing with a cookie in the browser.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events