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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,909 views 27 12
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