Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I get page id, if I cannot be accessed

Holger December 13, 2018

Hi all,

I have problems accessing a page with a big amount of embedded JIRA queries. If I would know the page id I would be able to access directly in edit mode to reduce the amount of JIRA queries,

Any ideas how to get the id only having the link of this specific confluence page?

 

BR,

Holg

1 answer

1 vote
roman
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 17, 2018

Hi @HolgDev,

do you have access to the parent page? If yes, this could be done with a user macro that prints out the ids of its children.

## @noparams
<table>
#foreach ($child in ${content.getChildren()})
<tr>
<td>${child.getTitle()}</td>
<td>$child.getIdAsString()</td>
</tr>
#end
</table>

In the Macro Body Processing setting choose Rendered.

This will render a table with the first column displaying the page title of child pages, and the second column — page ids. You can then use the URL http://my.domain.com/pages/editpage.action?pageId={pageID} to go to the editor of that page.

Hope this helps.

Roman.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events