Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

It is possible to change the color of a page title automatically after a predefined period of time?


I would like to check if there is a possibility to change the color of a page title automatically after a period of time. (I want to make this, part of a review process for expired documents and the only things that I can think of is the changing of the color page after 1 year - expiration date of the page/article)

Is this possible? Has anyone done this? 

Confluence version: 

Confluence 6.14.2
Thank you!

2 answers

Hi Catalin,

you can't do this with Confluence's out-of-the-box means and I don't think that there is some customization to do it. (I think that the color shouldn't just appear when viewing the page, but also in the sidebar, macro outputs and so on... And even if you achieved this, you'd still miss an overview of the outdated pages.)

Did you have a look at the Marketplace? Maybe you'll find something that fits your requirememt there...


Best regards,


Hello Nicolai, 

Yes there is something on Marketplace, Comala Workflow, we are waiting for the pugin but it will take some time ... and meantime I need a solution for this. 

Thank you!

Like Nicolai Sibler likes this
0 votes
Dominic Lagger Community Leader Oct 18, 2019

Hi @catalin.saizu 

There is one possibility to do that. You could write a javascript, which scrape the page to find the last modified date. Then this date you could compare with today, and if the date is more than 1 year ago, you just have to set the color of the title to red. 

This means, that you won't be able to get all old pages, but you directly see it on the page itself. You can paste this code on the custom html (At end of the BODY) in the admin console. 


var lastmodifiedDate = new Date(document.querySelector('.last-modified').text);
var today =;

var difference = today-lastmodifiedDate.getTime();
if(difference >= 31556952000){
document.querySelector('#title-text').children[0].style.color = 'red';


Hope this helps



Hello Dominic, 

I will take some time to check this method. 

Thank you!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

402 views 23 8
Join discussion

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