Skip to end of banner
Go to start of banner

Comala Workflows - Archive page

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

This script will move a page to a space to be archived when the workflow is put into a specific state.

if(space != "AS" AND comalaGetState(id) == "Archive") { //exclude from archive space and check state
    
    addComment(id, "Moving page to archive space"); //adds comment to page
    number archiveHome = getPage("AS", "Archive Space Home"); //gets id of the archive spaces home page
    movePage(id, archiveHome); //moves page under the archive space
}


See Other Recipes

See More Documentation

  • No labels