Get a list of pages with created and modified dates?

Darryl St_ Pierre
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.
October 2, 2018

For Confluence Cloud, I'm trying to figure out a way to get a list of pages with their created and modified dates based on the presence of a specific label. I've seen posts referring to using the Page Properties macro, but that requires filling out the values that already exist in the page properties.

I am by no means a macro expert...

1 answer

1 accepted

0 votes
Answer accepted
Deleted user October 2, 2018

Hello @Darryl St_ Pierre ,

We can try to use Confluence command line interface get the page list along with created and modified dates. Sample command and the respective result below : 

Action : 

confluence --action getPageList  --space "MYS"  --outputFormat 3

Result :  

"Space","Title","Id","Parent id","Author","Created","Modifier","Modified","Version","Url"
"MYS","Myspace Home","2523139","","admin","25/9/18 9:46 AM","admin","25/9/18 9:46 AM","1","http://localhost:8090/display/MYS/Myspace+Home"
"MYS","page with attachments","2523141","2523139","admin","25/9/18 9:46 AM","admin","25/9/18 9:47 AM","1","http://localhost:8090/display/MYS/page+with+attachments"

For specific labels: use/append to the command --labels "label1, label2"

 

confluence --action getPageList --space "MYS" --labels "label1, label2" --outputFormat 3

Thanks,

Swathi

Darryl St_ Pierre
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.
October 3, 2018

Thanks! Just what I needed.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events