In FORGE, I want to display a jira issue panel if entity property of App is set and Entity property for Project is set.
This was quiete easy with connect with “conditions” in atlassian-connect.json.
Question 2: How to show hide jira issue panel?
If i am not able to set the entity properties, i will not be able to use displayConditions entityPropertyExists entityPropertyEqualTo entityPropertyContainsAny entityPropertyContainsAll
and jiraExpression is available with with App and User context variables as per https://developer.atlassian.com/platform/forge/manifest-reference/display-conditions/jira/
Question is how can I show or hide jira:issuePanel based on condition at app level and project level?
Resolved this issue:
We can use rest api /rest/api/3/project/${projectIdOrKey}/properties/${propertyKey} to set project properties.
I have used jiraExpression to check the properties. Although it says Property value as string. in jiraExpression i have to compare boolean values as app.properties[‘key’]==true rather than app.properties[‘key’]==‘true’
Hi Shiv, could you share an image of your working code’s syntax using the jiraExpression in displayConditions ?
I’m not sure why both don’t work for me, even though I check it does exist via rest api.
Thank you for responding Shiv
And I have 1 more question is that
Is is possible for us to use the jira context like current issue.id, issueType.id in these “entity” issue view conditions ? entityPropertyExists entityPropertyEqualTo entityPropertyContainsAny entityPropertyContainsAll
According to the doc, we only have their properties instead of their fields.