Hi all,
I’m trying to use Entity Property Conditions in a Confluence Forge app across two modules - Global Page and Background Script. Per the Confluence display conditions docs, both modules support entity property conditions on the user entity.
My goal is to show the page in sidebar and run the background script only if the specified property exists on current user.
Minimal reproduction: GitHub - aljazomwf/forge-confluence-user-entity-property-issue: Repository that reproduces the issue where user entity property is not respected by display conditions. · GitHub
Here’s the relevant part of my manifest:
modules:
confluence:globalPage:
- key: settings-page-module
resource: main
render: native
title: Settings Module
route: settings-page
resolver:
function: backend-resolver
- key: hello-world-page-module
resource: main
render: native
title: Hello World Module
route: hello-world-page
resolver:
function: backend-resolver
displayConditions:
and:
isLoggedIn: true
entityPropertyExists:
entity: user
propertyKey: testprop
confluence:backgroundScript:
- key: background-script-module
resource: main
render: native
displayConditions:
and:
isLoggedIn: true
entityPropertyExists:
entity: user
propertyKey: testprop
What I’m doing: The Settings page has a button that sets/deletes the testprop property for the currently logged-in user. After setting it and refreshing the page, I still don’t see the Hello World page in the sidebar, and the background script’s console.log never runs.
What I’ve already verified:
- Both modules appear/run correctly when I remove the
displayConditionsblock, so the modules themselves are fine - using onlyentityPropertyExistswithout theisLoggedInalso does not work - The property is actually set
- I’ve tried both running the API calls with
asAppandasUserbut it makes not difference - Trying the functionality with different user accounts
- Logging in/out of the Confluence
- Try it in private browser mode
Questions:
- Are
userentity property conditions actually supported forglobalPageandbackgroundScript, or is there a caveat I’m missing? - Is there a caching/re-evaluation delay for
userproperties (i.e. do I need to do something to force the condition to re-evaluate)? - Any config/permission I’m missing?
Thanks,
Aljaz

