Hello there,
I am unable to use app.properties
to conditionally display jira:issueContext
: the module is displayed regardless of the condition and I assume that my condition is always evaluated as true
. The same condition works on the project
level perfectly well.
Here’s an extract of my manifest.yml
:
jira:issueContext:
- key: x-y-game-async-mode
resource: sessionless
resolver:
endpoint: connect-endpoint
title: X
label: Y
icon: resource:sessionless;icon/x-logo.png
displayConditions:
and:
appIsLicensed: true
hasAppAccess: true
jiraExpression: app.properties['x-conf']['tab-displayed'] == true
the same expression works just fine for the following conditions:
jira:issueContext:
- key: x-y-game-async-mode
resource: sessionless
resolver:
endpoint: connect-endpoint
title: X
label: Y
icon: resource:sessionless;icon/x-logo.png
displayConditions:
and:
appIsLicensed: true
hasAppAccess: true
jiraExpression: project.properties['x-conf']['tab-displayed'] == true
and what I want to achieve is:
jira:issueContext:
- key: x-y-game-async-mode
resource: sessionless
resolver:
endpoint: connect-endpoint
title: X
label: Y
icon: resource:sessionless;icon/x-logo.png
displayConditions:
and:
appIsLicensed: true
hasAppAccess: true
jiraExpression: app.properties['x-conf']['tab-displayed'] == true && project.properties['x-conf']['tab-displayed'] == true
As for debugging I am able to set the app property properly and I am able to verify that it works and can be changed using /rest/api/3/expression/evaluate
endpoint.