Forums

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

How can I implement the page status in a user macro?

lbuettner June 8, 2018

I am trying to construct a table of pages with the page status as one column, but I cannot find the java method which will return the page status. I tried inserting the page status macro into the newly created macro, but it takes too long to render the table. 

 

If someone could help me find the correct method or help me find the source code for the page status macro, that would be greatly appreciated. Thank you

1 answer

0 votes
Mirek
Community Champion
June 9, 2018

You can use page properties macro on each page that will contain information about the page and status and later show this in a table using Page Properties Report.

https://confluence.atlassian.com/doc/page-properties-macro-184550024.html

Bob Childs June 10, 2018

Thank you for the help, but I am constructing a table with hundreds of entries, and embedding a macro into my table will take too long to render. Do you know the java method that is used to read page status? I cannot find it in the API.

Thanks.

Mirek
Community Champion
June 11, 2018

According to this issue - https://jira.atlassian.com/browse/CONFSERVER-31081 it should bee possible to get Page Properties Values using REST API. It should be done via masterdetail service:

/rest/masterdetail/1.0/detailssummary.json 

You can use REST API browser to explore that - https://developer.atlassian.com/server/framework/atlassian-sdk/using-the-rest-api-browser/

lbuettner June 13, 2018

 Thank you for your help

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events