Forums

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

get modified by username when comment is added to page MACRO

Phil Brown October 2, 2018

I currently have a macro that extracts the last modified username of a page.  I would like to enhance this macro by also identifying when a comment is added to a page.

If 'page' is modified OR 'comment' is added - get username.

This would also suffice;

if ANY attribute of 'page' is modified, get username.

Thoughts?

Phil

1 answer

0 votes
JP _AC Bielefeld Leader_
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.
October 3, 2018

Hi Phil,

as comments are connected to a page but not part of the page, the way to go would be:

- Get last updated of page

- Get last comment of page by looping over all comments (could be difficult because there can be comments of comments...)

- Compare the last updated dates & return the youngest value

Quit a bit of programming in a user macro but should be possible.

Best

JP

Phil Brown October 3, 2018

Thanks for the suggestion.  Not as streamlined as I would have hoped.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events