Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can I limit how many days of maintenance ahead to show?

I want to schedule a full year worth of maintenance in Statuspage, but I don't want my page to fill up with a whole year's worth of maintenance. How do I limit the number of days that Maintenance shows?

1 answer

1 accepted

1 vote
Answer accepted

Add this to the footer of your page. It uses JQuery to get each maintenance item, find and extract the unixdatatime out of each one, compare it to today, and as currently set, remove if it's over 14 days out.

$('.scheduled-maintenance').each(function(index, eo) {
let daysToShow = 14;
let thisTime = $(eo).find('.pull-right')[0].dataset.unixTime;
let scheduledDate = new Date(thisTime*1000);
if (( scheduledDate.getTime() ) > ( + (86400 * 1000 * daysToShow)) ){
$( this ).remove();

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Statuspage

New feature: Slack notifications for Statuspage

We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...

2,452 views 6 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you