User Macro if content modified

Philippe Braxmeier March 19, 2018

Hello,

We are using a User Macro where someone can approve a specific page by mark the checkbox.

I would like to uncheck this checkbox if content or version has changed.

I cant find a suitable parameter.

 

Do you have some ideas?

 

Thank you

 

1 answer

1 accepted

0 votes
Answer accepted
Stephen Deutsch
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.
March 20, 2018

Without seeing the code of the user macro, it is hard to say.

You can get the version number of a page like this: $content.version

You would probably have to save this along with the checked status and if the $content.version variable is different than the saved version, then uncheck the checkbox.

Philippe Braxmeier March 20, 2018

Hi Stephen,

Thank you. Do you have any idea how to save $content.version and for example $NeedsApproval 

 

The i guess i can do an if else loop.

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events