Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Table of Contents
maxLevel3
minLevel3
maxlevel3
minlevel2
typeflat
separatorpipe

Excerpt

Scripts used to help manage this site

.

Child pages (Children Display)
depth2
excerpttrue

 

Style
pre {white-space: pre-wrap;}
Info
titleSpace 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 CSOAP or Run CLI Plugin for Actions in Confluence (requires version 3.0.0 - available soon).

No Format
titleAdding 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"
No Format
titleRemove 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.

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

Space permissions

No Format
titleRemove 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"
No Format
titleChanging 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"