Pinning Statuspage uptime graphs to the TOP of the Status Page

Randy Everett September 8, 2022

Does anyone have any example code of how to pin, or keep, the uptimes graphs at the TOP of the status page. Incoming incidents are pushing the graphs FAR down the page. I would rather have the graph stay at the top.

I might even like disable the showing of the incidents if that is possible and JUST have the graphs. 

I am not a programmer. Your help is appreciated. 

2 answers

0 votes
John M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 9, 2022

Hi @Randy Everett ,

We have some JS snippets that can help with that.

Inserting this code into the Custom HTML Footer will move the components above the incidents: 

<script> $('.components-section').insertBefore('.unresolved- incidents'); </script>

You can remove incidents completely with this one: 

<script> $('.unresolved-incidents').remove(); </script>

You only need to add the opening and closing script tags once if you have multiple code snippets.

Also, be sure the syntax highlighting is working. Here is a video of pasting code into the editor, where the syntax highlighting is initially broken ('incidents' should also be red) due to the line break, but is easily fixed by backspacing once at the beginning of 'incidents'

2022-09-08_16-53-39 (1).gif

John W July 12, 2023

I'm wondering if there have been any updates to this?  Nothing happens when I use the snippet to move components before the unresolved incidents:  

<script> $('.components-section').insertBefore('.unresolved- incidents'); </script>

However removing incidents completely works fine with this one you mentioned above:  

<script> $('.unresolved-incidents').remove(); </script>

John M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 12, 2023

Hi @John W ,

The code should still work. Is the syntax highlighting working? If not, the screen video above shows how to fix that. 

John W July 13, 2023

Yes the syntax highlighting looks to be working fine, but for some reason it's not working (all the active incidents are still showing at the top).  Weird, but like I said if I use the code to remove the active incidents it works fine.   

John W July 13, 2023

Looks like I finally got it to take just by playing around with the text and re-typing it manually.  Thanks!  

Like John M likes this
0 votes
Abraham Musalem
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 9, 2022

Hey Randy,

Thanks for reaching out to community. Abe here with Statuspage support. You should be able to achieve this by using something similar to this code snippet which moves the components section above the incidents section. YOu will need to put this in the footer: 


<script> $('.components-section').insertBefore('.unresolved- incidents'); </script>

 You can find more basic code snippets here: 
https://support.atlassian.com/statuspage/docs/css-and-javascript-snippets-for-customizations/#Move-the-components-section-above-the-active-incidents-section

Cheers, 
-Abe, Statuspage Support

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events