Hi,
Macro which shows last page last modify day not worki.ng anymore. Code below. Could it be related with Confluence upgrade, it was upgraded to 8.2.1
Thank you
## Macro title:lastmodified
## Macro has a body: N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: Lars Bjerges
## Date created: 26/06/2017
## Installed by: Lars Bjerges
## Get the last modify date for a page
## @noparams
$action.dateFormatter.formatDateTime($content.getLastModificationDate())
Hi, @Lauras Susa
Please, try this
## Macro title: changedate
## Macro has a body: N
## Made by Evgeniy Isaenkov
## @noparams
$action.dateFormatter.formatGivenString("dd-MM-yyyy HH:mm",$content.getLastModificationDate())
Checked it, it works in 8.22+ versions
Hi @Evgenii
Thank you for your reply. In Both cases are not working :( Macro config. I compered with other macros config and is the same. But only this one not working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same problem as @Evgenii - both your macro and theirs are working fine for me.
But, could you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic,
Thank you for suggestion. I tried all Macro Body Processing option with Evgeniy code and my. Always result the same. That's really strange, that only one of User Macros stopped working. Other works as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I think this one needs to go to Atlassian support.
Although I would try one more thing - delete the macro, then recreate it with the same name (so as not to disrupt any pages using it).
Don't copy and paste the code though, there might be something invisible in it that is breaking it.
What you're seeing is what happens when velocity can not run the code you are invoking, and in this case, I can't see what is wrong with any of the code you've tried.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.