Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi,
I would like to find all page versions on a descendents tree created before the parent page creation but I would like to exclude all versions created in the same time, for example by a copy of the tree.
So I need to keep the parent creation date and to add 10 seconds to it.
I get a Calendar date with the creation date
#set ($parentPage=$pageManager.getPage($space.key,$paramParentPageName))
#set ($creationDateOriginal=$parentPage.getCreationDate())
#set ($cal = $action.dateFormatter.getCalendar())
$cal.setTimeInMillis($creationDateOriginal.getTime())
But the following line doesn't work :
$cal.add($cal.SECOND,5)
Could you help me please ?
Best regards,
Elodie
How about something like:
#set($cal.setTimeInMillis=$creationDateOriginal.getTime()+ 5000)
Hi,
Unfortunatly, it doesn't work, "$cal.getTime()" displays "Wed Oct 03 11:30:03 CEST 2018" and "$creationDateOriginal" displays "Wed Oct 03 11:30:03 CEST 2018"
#set ($parentPage=$pageManager.getPage($space.key,$paramParentPageName))
#set ($creationDateOriginal=$parentPage.getCreationDate())
$creationDateOriginal
#set ($cal = $action.dateFormatter.getCalendar())
#set($cal.setTimeInMillis=$creationDateOriginal.getTime() + 5000)
$cal.getTime()
Regards,
Elodie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.