Forums

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

How to print Confluence pageid value on articles created from template?

Matt S
Contributor
November 18, 2022

I'm working to create Confluence templates that will contain Jira macros. Those macros will search based on ScriptRunner JQL that pulls in tickets that are linked to the article via the 'Link Confluence page' function. I can currently add these manually, but am interested in automating as much as possible.

LinkConfluencepage.png

Since I don't believe it's possible to dynamically update the JQL in the Jira macro when a page is created from template (if this is possible, please let me know), I'd like to print the pageid instead. The ultimate goal would be to print the full JQL query so that the user creating the page could just paste it into the macro. I know you can pull the value from the URL when editing, but would prefer to eliminate that as a step. Reasoning is that some of the users who would be creating pages this way are not as adept with JQL and having the full query available would improve buy-in.

Could this be accomplished with template variables somehow?

0 answers

Suggest an answer

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

Atlassian Community Events