Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Help with calculating Confluence dates

Ivo Ooghe December 17, 2018

I could use help with calculating with dates in Confluence.

 

Each of our projects has a deadline date.

Depending on the type of project, it has more or less phases or milestones, each with their own deadline.

We want to calculate those milestone deadlines based on the project deadline.

Ideally, we should be able to define the amount of days to subtract from the project deadline dynamically.

 

An example:

  • Project A of type X has a deadline of March 29, 2019 and has three milestones B, C and D.
    • Milestone B: -56 days: 31/01
    • Milestone C: -28 days: 28/02
    • Milestone D: -4 days: 25/03
  • Project E of type Y has a deadline of March 29, 2019 and has two milestones F and G.
    • Milestone F: -77 days: 10/01
    • Milestone G: -35 days: 21/02

 

I have made some attempts to reach the required result but have failed:

  • Report evaluation: %data:NextDate >date:day of month% - %data:PreviousDate >date:day of month%
    • Calculates the difference between 2 dates, handy but I would like to do the opposite (add or subtract a number of days from a date)
  • Report evaluation: %data:NextDate >date:day of month% -7
    • Works for days but can go below zero so not usable.
  • Report info key: data:NextDatum > date:"shift \ 7d"
    • This works but is static since the 7d is a fixed value in the Confluence macro. It would be ideal if we could read this value (7 in this case), from a table dynamically.
  • Report evaluation: %data:NextDate >date:milliseconds% - (%data:DateShift% * 1000 * 60 * 60 * 24)
    • This is the desired result (DateShift is the amount of days to subtract, e.g. 7) but in milliseconds. If it is possible to calculate this back to a date, this would solve the problem for me.

3 answers

1 accepted

0 votes
Answer accepted
Ivo Ooghe January 4, 2019

Solved using the Report Info macro with as Key “variable:DateVariable >number:to date”

0 votes
Andrey Khaneev _StiltSoft_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 20, 2018

Hello Ivo,

Maybe you'll find Gantt chart interesting in this case.

Ivo Ooghe January 3, 2019

Dear Andrey,

The Gantt chart will come in handy to represent data in a visual way.

However, it will not allow us to calculate dates based on a given deadline.

Kind Regards,

Ivo

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 20, 2018

Ivo,

Can you let me know, are you using some sort of add-on to calculate this? I'm not familiar with this process and I want to make sure to properly tag your question so we can get it to the right people to answer your questions.

Regards,

Shannon

Ivo Ooghe January 3, 2019

Hello Shannon,

We are using Confluence with the Reporting, Scaffolding and Scaffolding Reporting add-ons.

Kind Regards, Ivo

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 3, 2019

Thank you, Ivo.

Since your question is regarding a 3rd party add-on, I've tagged the post and moved it to the Marketplace collection.

That way the vendor or users familiar with the add-on will be able to assist you.

Regards,

Shannon

Ivo Ooghe January 3, 2019

Thank you Shannon!

Being able to reformat a millisecond number back to a normal date would solve the problem for me too.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events