Access a page creator in a user macro

I'm trying to create a user macro and I need to be able to detect the creator of the page the macro is used on. I know $ detects the currently logged in user, but how do i find the user who created the page(or at least last edited it)?

3 answers

1 accepted

found the answer in another person's question:


After much searching, I found a solution for myself. It works because the intended use is in a personal space which is created by the user who also edited the home page last. Still would like to find one that works on a page level for other uses.

It's simply:

I found it on this webpage

The AbstractPage's getCreatorName() method will return the name of the page. This is how I would access it in a decorator, but in a macro, I can't recall how to get a reference to the current page.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

792 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you