if not approved within the specified period of time, pages approved within the set time are published and visible to all users.
{description}
{workflowparameter:Document Editors|description=Only members of this users group can view pending documents|type=group}
confluence-users
{workflowparameter}
{workflowparameter:Pending Expiration|description=If a page stays in 'For review' for this period of time, then the state will be changed to 'Expired'|type=duration}
P10D
{workflowparameter}
{state:Pending|submit=For review|taskable=true}
{state}
{state:For review|approved=Published|rejected=Pending|expired=Expired|taskable=true|hideselection=true|duedate=@Pending Expiration@}
{approval:Publish|assignable=true}
{state}
{state:Published|final=true|updated=For review}
{state}
{state:On hold|submit=For review|hidefrompath=true}
{state}
{state:Expired|hidefrompath=true}
{state}
{trigger:statechanged|state=Pending|initial=true}
{add-restriction:type=View|group=@Document Editors@}
{trigger}
{trigger:statechanged|state=Published}
{remove-restriction:type=View}
{trigger}
{trigger:statechanged|state=On hold}
{add-restriction:type=View|group=@Document Editors@}
{trigger}
{trigger:taskassigned}
{send-email:user |