How to get page creator !

I need to get page creator from a macro, to use in Profile user Macro.

Please Help.

1 answer

This widget could not be displayed.

Hi Bryan,

If you want the creator of the current page that the user macro is on then you can use:

$content.getCreatorName()

in your user macro. Is that what you wanted?

Andrew.

yep !!!! thnx men !!

UPS !!! doesn't work on production server. I test it on the developer server and work but on production server doesn't work... I need to use that with Bubbles community plugin. THNX !!

Could you post the contents of your macro here and I'll have another look? Also, is it the creator of the current page you want, or the creator of a page listed by one of the Bubbles macros?

Thanks,

Andrew.

I need the topic Author... ( page creator :S )

"the creator of a page listed by one of the Bubbles macros"

Ah, ok. If you use Tools -> Info on the forum root page and make a note of the pageID you could use something along the lines of:

#set ( $forumRoot = $pageManager.getPage(589833) )

<ul>
#foreach ($topic in $pageManager.getDescendents($forumRoot))
  <li>Topic = $topic.getDisplayTitle(), Creator = $topic.getCreatorName()</li>
#end
</ul>

where 589833 is the pageID of the root page I searched from in the above example.

It loops through all the child pages of the root page (which is what I think topics are?) and displays the title (topic) and who created it.

Needs tweaking to fit your exact needs, but hope it helps?

Andrew.

that looks awesome... but is not that I need... Only I need to display the creator profile inside the topic, something like

$content.getCreatorName()
but inside bubbles forum... :S this parameter doesn't work in bubbles... show:
com.atlassian.renderer.v2.macro.MacroException: No user $content.getCreatorName()

I'm confused. Where are you entering $content.getCreatorName() ? Could you post the contents of your user macro or macro parameters on this thread?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

71 views 2 3
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