Site scripts

 

Scripts used to help manage this site

 

Space list that includes all anonymous and general use access

--list "ACLI, BCLI, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, SCLI, SCLIP, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, CW, MARKDOWN, JSOAPLIB, CSOAPLIB, GINT"

 

Other tips and techniques

How to

In order to produce a page with links to all the how to pages, we use howto labels on all pages and content by label macro. In order to do this, we need a quick way to make sure all the existing how to pages had the right label. This is what was used. I We also removed howto labels from the simple topic pages. This uses the Confluence Command Line Interface (CLI) or Run CLI Actions in Confluence (requires version 3.0.0 - available soon).

Adding labels to all the how pages
confluence --action runFromList --common "--action runFromPageList --common \"--action addLabels --id @pageId@ --labels howto\" --regex \"How to \s*.*\" --space @entry@" --list "ACLI, BCLI, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, SCLI, SCLIP, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, LIBSCRPT, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, JSOAPLIB, CSOAPLIB, GINT"
Remove labels from topic pages
confluence --action runFromList --common "--action runFromPageList --common \"--action removeLabels --id @pageId@ --labels howto\" --regex \"How to\" --space @entry@" --list "ACLI, BCLI, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, SCLI, SCLIP, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, LIBSCRPT, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, JSOAPLIB, CSOAPLIB, GINT"

Checking page restrictions

Occasionally, pages are hidden until ready for production use. However, it is easy to forget to remove the restriction. The following produces a list of pages that have view or edit restrictions. It can be scanned for pages that are not intended to be hidden. It should be run with the id that is restricting pages. Requires ACLI 3.3 or above.

Page permission list
--action runFromPageList --space @all --common " --action getPermissionList --id @pageId@ --outputFormat 2 --file permissionList.csv --append"

Space permissions

Remove labels from topic pages
--action runFromList --common "--action runFromPageList --common \"--action removeLabels --id @pageId@ --labels howto\" --regex \"How to\" --space @entry@" --list "ACLI, BCLI, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, SCLI, SCLIP, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, LIBSCRPT, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, JSOAPLIB, CSOAPLIB, GINT"
Changing space permissions
--action runFromList --common "--action addPermissions --space @entry@ --group users --permissions EXPORTSPACE,CREATEATTACHMENT" --list "ACLI, BCLI, CRDCLI, CRUCLI, CSOAP, FCLI, JCLI, SCLI, SCLIP, BGTP, CACHE, DTBL, XL, FLASH, GVIZ, HTML, JSPR, LIBSEC, CMSP, RUN, LIBSCRPT, SCRP, SLID, SQL, TBL, CVP, WORD, CWP, CCLI, JCPP, CSOT, JSOAPLIB, CSOAPLIB, GINT"


Find answers from the community.

Ask a question to the community.

Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.