Calculate a date based on another date

I'm creating a page that documents a launch plan.  There are several deliverables with due dates, and I want to make them all relative to the launch date.  Currently, I'm entering each one using the date macro, but each time the launch date changes (happens often, I'm working on that!), I have to manually change a dozen other dates.   With the audience for this file, a "-2W" type of indicator is not really working.

In short, I want to display date "X" once in a page, and then display a calculated relative date "Y" which is  "X-n" , where n is a number of days/weeks (or whatever, I don't care if I have to convert to seconds!)

In confluence cloud, what option (including plugins) do I have that can accomplish this? 

3 answers

It seems that you need a macro. 

main idea - find some html element where start date is stored and work with it with javaScript.

I would reccomend to organise all dates into a table and create a macro with param to add/minus of a Date into fixed row/line of this table.

I was led to believe I can't add user macros on cloud.  I already thought of that - in fact, at my previous job we had an on-premise installation, but it had over 100X more employees wink.  A user macro is exactly how I solved this.  

We can't justify increasing the headcount by 1, and have 12.5% of staff just to admin JIRA.  I run into "Can't do this on cloud" probably once a week sad.

Do you have a JIRA instance? You could create JIRA issues and then show results into Confluence

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

1,219 views 78 8
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you