Some pages are not displaying in contentbylabel macro, despite containing the label being searched
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
Some of the pages that have the label set in the contentbylabel macro are not being displayed. When you are an administrator, you can still view the page if you navigate directly, however it won't show up in the macro unless you have direct access. The pages may show up when doing a search for "labelText:label".
Cause
The page containing the label doesn't have "read" permission for the currently logged on user. This might be a result of:
The space not having "read" permissions for the current user
The page has a restriction restricting the current user from viewing the page
A page which is an ancestor of the page has a restriction restriction the current user from viewing the page
Resolution
Check if the current user has view access granted in Space Permissions, and add the access if needed.
Check if the page has any read restrictions, and remove the restriction if needed.
Was this helpful?