Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Page not showing up in content by label macro when view restrictions are applied

Are there any known issuses with applying both view restrictions and edit restrictions to a page created from template using confiforms. I use two separate IFTTT macros (one for restrict edit and one for restrict view) and i add two security groups.

When i create the page it is not listed in the content by label macro, but if i change the IFTTT macro from view restrictions to edit restricitions, it works fine.

Anything i might be forgetting?


1 answer


This is hard to debug remotely, to be honest. But what I know is the content by label macro relies on the search index being in sync and it does check for "view" permissions

What happens when you create a same restricted page manually - does it show up in the content by label macro results?


It works fine if i create one manually. The same page also shows up if i remove the restrictions and apply them again manually.

I can send you the form setup source code, but not post it here.

And also: the form is rendered by a usermacro with parameters

@Alex Medved _ConfiForms_ 


I cannot reproduce this, but it is true that sometimes it might take some time for content macro by label to show the contents.

As noted earlier it (seems like) depends on the search index update

You can try to add an IFTTT to your form submit flow to include "Force page re-index" to ensure the page gets picked up earlier by indexer


It does not help to re-index the page i'm afraid. This is a problem which occurs (as far as i know) only when using confiforms. It is strange that everything under permissions seems to be normal.

I agree, it must be an index problem. It is not showing up in the content by label macro. I'll check again tomorrow and see if it has indexed

I can share with you a test configuration I have been using (in storage format). It includes the earlier mentioned configuration of an IFTTT to force reindex...

<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="17f87525-c5ea-4ced-90a7-54c54f353798"><ac:parameter ac:name="formName">f</ac:parameter><ac:rich-text-body>
<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform-entry-register" ac:schema-version="1" ac:macro-id="42d4802a-cd77-498d-8617-8e718dda6c0f"><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="9bfad2c0-85bc-4f66-bf9e-30059d710767"><ac:parameter ac:name="fieldName">t</ac:parameter><ac:parameter ac:name="fieldLabel">t</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p><ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="56beaf09-5ce5-472a-9510-422d4f1a8bc6"><ac:parameter ac:name="action">Create Page</ac:parameter><ac:parameter ac:name="event">onCreated</ac:parameter><ac:parameter ac:name="title">[entry.t]</ac:parameter><ac:parameter ac:name="extras2">test</ac:parameter><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="f401e454-1376-4bf7-ba12-5816ae89bbc9"><ac:parameter ac:name="action">Restrict Page View</ac:parameter><ac:parameter ac:name="extras">[]</ac:parameter><ac:parameter ac:name="event">onCreated</ac:parameter><ac:parameter ac:name="who">[entry._user]</ac:parameter><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="d90551b4-d4c1-4678-80d9-b3dfb53ba023"><ac:parameter ac:name="action">Force Page Re-index</ac:parameter><ac:parameter ac:name="extras">[]</ac:parameter><ac:parameter ac:name="event">onCreated</ac:parameter><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p></ac:rich-text-body></ac:structured-macro>
<p><ac:structured-macro ac:name="children" ac:schema-version="2" ac:macro-id="b3aa4207-5804-4b0b-8c8b-ea3bd770e2b0" /></p>

Then I have another page that uses contents by label macro to show pages by "test" label

Hope you see the same results as I do


I'll check it out. One thing i forgot to mention is that the person who creates the page can see it in the content by label macro if they are added as a user with edit permission. I find that a little strange

Still the same. And the indexing queue is empty.

The problem does not occur when i add the same security group in the ifttt for restrict view and the ifttt for restrict edit.

It only occurs when i add a different group in the restrict view ifttt.  @Alex Medved _ConfiForms_ 

Suggest an answer

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

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

757 views 5 21
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