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

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Thursday in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

302 views 0 12
Read article

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