Script to configure space themes

Summary

Set space themes to the documentation theme and configure it in a standard way. Requires Atlassian Command Line Interface 2.6.0 or above.

Site administrators

This site now uses a slightly different configuration for some spaces. The following is left as a good example for customers only. Go to the site documentation theme configuration page for current details. 

Use runFromSpaceList

If ALL spaces in the installation need to be configured like this, it is easier to use runFromSpaceList. Use should probably test with a single space first before doing multiple spaces.

Set Space Theme to Documentation Theme
atlassian confluence-bobswift -a runFromSpaceList --common "-a renderRequest --request /spaces/dochoosetheme.action --requestParameters themeKey=com.atlassian.confluence.plugins.doctheme%3Adocumentation&changesSaved=true&key=@space@"
Configure Documentation Theme
atlassian confluence-bobswift -a runFromSpaceList --common "-a renderRequest --request /spaces/doctheme/doconfiguretheme.action --requestParameters spaceSearchEnabled=false&navigationText=%7Bpagetree%3AstartDepth%3D2%7CsearchBox%3Dtrue%7D&headerText=%7Binclude%3Ainfo%3A_StandardHeader%7D&footerText=%7Binclude%3Ainfo%3A_StandardFooter%7D&confirm=Save&key=@space@" --continue 

Using runFromList

This allows the list of spaces to be a specific list. For example, this site uses a theme configuration that is dependent some specific categories of space. 

Set Space Theme to Documentation Theme
atlassian confluence-bobswift -a runFromList --common "... =@entry@" --list "ACLI,BCLI"


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.