Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{repository-workflow:dm.remotepublishing|categories=sample,docmanagement|chart=remotepublishing.png}
{repository-description:name=Remote Publishing Workflow}
{note}Remote publishing requires the [Remote Publishing Plugin|https://plugins.atlassian.com/plugin/details/42115].{note}

This workflow allows one-way synchronization of a remote confluence instance. Please visit the [workflow's page|http://www.adhocworkflows.com/display/WORKFLOW/Remote+Publishing+Workflow] for instructions on how to set up the _private_ and _remote_ instances.
{repository-description}
{workflow-body}
{workflow:name=Remote Publishing}
    {state:Draft|submit=For Review}
    {state}
    {state:For Review|approved=Published|rejected=Draft}
        {approval:Publish}
    {state}
    {state:Published|final=true|updated=For Review}
    {state}
    {state:Remove}
    {state}
    {trigger:statechanged|state=Published}
        {set-message:type=note}Page publishing pending...{set-message}
    {trigger}
    {trigger:statechanged|state=For Review}
        {set-message}{set-message}
    {trigger}
    {trigger:statechanged|state=Published|queue=true|newevent=pagepublished}
        {remotepublish-page:remote}
    {trigger}
    {trigger:pagepublished|success=true}
        {set-message:style=info}Page Published!{set-message}
    {trigger}
    {trigger:pagepublished|success=false}
        {set-state:For Review}
        {set-message:user=@user@|style=warning}publishing failed: @errormessage@{set-message}
    {trigger}
    {trigger:statechanged|state=Remove}
        {remoteremove-page:remote} 
    {trigger}
{workflow}
{workflow-body}
{repository-workflow}

Setting up the

...

remote instance

The remote API must be enabled in the public instance (go to To setup the remote instance you are publishing to, you need to enable "Remote API" setting in Administration > General Configuration > Feature Settings to enable it). We need to .  You also need to have a user that has access to the general space.  We recommend you set up a user , which would have access only to the PUBLIC space.on the remote instance that only has access to the spaces you are publishing to for security purposes and to prevent accidental overwrites of other spaces.

Setting up the source instance

To set up the remote instance credentials, you have to set the parameters in the source instance:

...