Confluence page ID as a smart value in a macro (data center)

Lucia Stypova October 23, 2024

Hi community!

I try to find out if there is a way how to build a general custom user macro, which will display all linked Jira issues to that concrete page with no additional effort. 

When you select Jira Macro and put following filter there "issuefunction in linkedIssuesOfRemote("query", "pageId=xxxxxxxxx")" it automatically displays all linked Jira issues to selected confluence page (pageId=xxxxxxxxx). 

The question is, if it is possible to build a user macro where pageId attribute will be as a smart value. Something like pageId = {{page.id}} . Then this macro could be used in Confluence page template.

 

Looking forward to your responses. 

1 answer

0 votes
Laurie Sciutti
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2024

Hello @Lucia Stypova ~ you should be able to do this (though I haven't tried so I can't confirm).  Here is an OLD post about this that you may want to have a look at:  https://community.atlassian.com/t5/Confluence-questions/Get-display-Page-ID-Confluence-Internal-Code/qaq-p/636638 that utilizes $content.getIdAsString(), which does return the pageid,  HTH

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events