Hi,
I am working on an own user macro based on this source code: https://community.atlassian.com/t5/Answers-Developer-Questions/Get-incoming-links-with-in-a-user-macro/qaq-p/538128
It's working (I see the outout of the macro), when I use the macro and save the page including it. But in the preview mode, when editing the page, $action.getIncomingLinks() seem to be empty. Therefore the macro does not seem to be able to generate a preview.
When the part of the page with the macro gets included in another page via page properties report the part generated by the macro is empty, too.
Is there a way around this issue?
Cheers, Markus
I am running into the same issue. After a little investigation, it looks like the $action variable's context is the calling page. If you have any incoming links on the calling page, they will erroneously show up instead. I believe the edit preview is technically a different page so the incoming links don't behave correctly.
Use can use this paid app
https://marketplace.atlassian.com/apps/166/linking-for-confluence?hosting=cloud&tab=overview
I believe it works correctly.
-Scott
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.