The example markup above based on the example from Same-space publishing, but we've added the {trigger} at the bottom. When the state changes to Published, the trigger is activated and the {publish-page} macro instructs the Comala Publishing app to synchronise the published content with the other space.

Note: The final=true parameter is not necessary for different-space publishing, all the work is done by the {publish-page} macro.