Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Comala workflow trigger to set page restriction not working when using a linked workflow Edited

I have a few workflows which are applied by setting a space category, and further applied by page label.

In order to link the workflow to a space, I use the 'link workflow' function in the Global Workflow template area. The workflow is applied, however, I also need to set a page restriction once the workflow is applied to limit access to another plugin on the page for a certain user group. This page restriction isn't being set once the workflow is linked, so I must manually go to the document management section of the space tools in order to initialize the first state and set the page restriction. Is this the intended behavior, or do I have my workflow configured incorrectly?

I would be surprised if this is the intended behavior since it takes roughly as much manual intervention as simply setting up the workflow manually from the page menu. in either case I'm clicking space tools, document management, initialize states vs clicking on the page menu and applying the workflow. Granted this isn't a 1:1 example, since i have many pages with the same workflow, so at scale the manual intervention is less, but the requirement to remember to execute a manual step might arguably be the purpose for creating the linked workflow functionality

Just curious to know if this is the intended functionality, or if I'm missing something in the configuration

{trigger:statechanged|state=Draft|initial=true}
    {add-restriction:type=edit|group=admins}
{trigger}

 

version 6.13.2

1 answer

Hello @David Pressley,

Welcome to the community. Your workflow trigger is fine, the behaviour you describe is expected. The statechanged event only occurs when a state is entered into, in the case of the initial state this is when a page is created. The statechanged event will not occur when a workflow is applied to an existing page. For more details see our documentation about 'unprocessed' pages.

If this is something that you expect to do often, could you reach out to our support team at https://support.comalatech.com with details of your use case and current workflow markup.

All the best

James
Senior Product Manager

Hi James, 

Thanks for the response

Does a Comala Publishing Copy to a space count as a page creation? If so, does it follow that I should set my target space up first, set a space category, link the space from the global template before executing the Copy to a space from Comala publishing?

Hi @David Pressley 

A Comala Publishing space copy in to a clean space counts as a page creation. The simplest workflow to set restrictions on page creation looks like:

{workflow:name=Restrictions}
{state:Test}
{state}
{trigger:pagecreated}
{set-restrictions:type=view|user=james}
{trigger}
{workflow}

For full details of the set restrictions macro, see https://wiki.comalatech.com/display/CDML/set-restrictions+macro 

One thing to take care of before making your space copy with Comala Publishing, please ensure that you untick the 'Copy page restrictions' advanced option.

Kind regards

James
Senior Product Manager

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

⚡️NEW Group for Confluence Cloud Admins

Calling all Confluence Cloud Admins!  We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...

137 views 2 10
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you