Workflow - Page restrictions don't work when creating page using template

I have an ad hoc workflow which applies view and edit restrictions to Confluence pages within a space. It has been tested using a blank page and all works as expected. When I have used a template (space or global) then the restrictions are not applied. How do I fix this?

4 answers

1 accepted


Just to let you know that we have fixed the bug for our next release(Ad hoc Workflows 4.3.1) due in the next week or two. To be updated on new versions of Ad hoc Workflows please go to our Marketplace listing here - - click on the Details tab then again on "Watch Add-on". An email will then be automatically sent out whenever a new version is released.


Quick update on that - 4.3.1 was released a couple days ago. Please try it out and let us know if you have any more issues.


New version works fine, Thanks.

Is you workflow operating on all pages in a space, or just those with a certain label?

It's a space level workflow, applied to all pages. With a space template the red lock appears but when clicked on shows no restrictions.

Hi Colleen/Charles,

I have confirmed that an issue does exist with Ad hoc Workflows in Confluence 5+ where triggers fire but {add-restriction} doesn't work on triggers fired upon page creation when created a page from a template/blueprint.

Not sure on why or where the problem originates(Confluence or Ad hoc Workflows) but I've logged a bug for the developers to look into it.


Not sure on fix date, but in a previous reporting of this issue one of my coworkers had come up with a workaround. The workaround is to add a new initial state before your first state, set a 1 minute due date on it and have it automatically change to your actual first state after about 1-2 minutes after the page is created.

Something like this:

    {state:Creation State|duedate=PT1M|expired=In Progress}
    {state:In Progress|approved=Approved|taskable=true}
    {state:Approved|final=true|updated=In Progress|hideselection=true}
 {trigger:statechanged|state=In Progress} {add-restriction:type=View|user=@user@} {add-restriction:type=Edit|user=admin} {trigger} {workflow}

Basically all you need to do is insert a state(with whatever name you want) like "Creation State" above with the "expired" parameter set to your actual first state which in this case is "In Progress" Nothing else needs to be done to the workflow apart from insuring you use a statechanged trigger on your actual starting state. This new state won't be used again in future iterations of the workflow.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

458 views 3 18
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you