Hi everybody,
I configured the following custom workflow with the application 'Comala Workflows'.
Now to my problem:
I want to set the following permissions and I am a bit confused:
1) If a page has the status 'Editing', only the creator/last editor should see the page/last changes.
2) If a page has the status 'Ready', the creator/last editor and the approvers should see the page/last changes.
3) If a page has the status 'Publish', everyone should see the page/last changes.
How can I achieve this?
{workflow:name=Approval}
{description}
Editor Approval
Admin Approval
Publish
{description}
{workflowparameter:Editors1|description=Editors group|type=group}
Lmh_de_Lindepedia_editors
{workflowparameter}
{workflowparameter:Editors2|description=Editors group|type=group}
Lmh_de_Lindepedia_authors
{workflowparameter}
{workflowparameter:Editors3|description=Editors group|type=group}
confluence-administrators
{workflowparameter}
{workflowparameter:Approvers1|description=Approvers group|type=group}
Lmh_de_Lindepedia_editors
{workflowparameter}
{workflowparameter:Approvers2|description=Approvers group|type=group}
Lmh_de_Lindepedia_approver
{workflowparameter}
{workflowparameter:Viewer|description=Viewers group|type=group}
confluence-users
{workflowparameter}
{state:Editing|submit=Ready}
{state}
{state:Ready|approved=Publish|rejected=Editing}
{approval:Publish|group=@Approvers1@,@Approvers2@}
{state}
{state:Publish|final=true}
{state}
{trigger:statechanged|state=Ready}
{add-restriction:type=view|group=@Approvers1@, @Approvers2@, @Approvers3@}
{add-restriction:type=edit|group=@Approvers1@, @Approvers2@, @Approvers3@}
{remove-restriction:type=edit|group=@Editors1@, @Editors2@, @Editors3@}
{trigger}
{trigger:pageapproved|approval=Publish}
{add-restriction:type=view|group=@Viewer@}
{trigger}
{trigger:statechanged|state=Editing}
{add-restriction:type=view|group=@Editors1@, @Editors2@, @Editors3@}
{add-restriction:type=edit|group=@Editors1@, @Editors2@, @Editors3@}
{trigger}
{trigger:pageupdated|state=Publish}
{set-state:state=Editing}
{trigger}
{trigger:pageupdated|state=Ready}
{set-state:state=Editing}
{trigger}
{trigger:statechanged|state=Ready}
{send-email:user=@Approvers2@|subject=Genehmigung erforderlich}
Bitte prüfen Sie die Seite @page@!
Vielen Dank!
{send-email}
{trigger}
{workflow}Regards,
Philipp