Condition on Forge scopes

Hi
I created a forge app using ui kit, the app is mainly used in jira but in some cases its integrate with confluence as well
therefore the permissions scopes in the manifest files include both jira and confluence
in some cases there is no confluence installed and the app is not working due to the confluence permission
how can we manage permission conditions?
those are my scopes:

permissions:
scopes:
- storage:app
- read:jira-work
- write:jira-work
- read:content-details:confluence
- write:content:confluence

thanks
Dar

Hi @dar.kronenblum,

I’m afraid there is no way to specify permissions per product of manage them conditionally.

Thanks,
Vitalii

@dar.kronenblum let me also add that, while cross-product scopes are allowed in the manifest, the
Marketplace doesn’t currently support them as stated in this paragraph: https://developer.atlassian.com/platform/marketplace/listing-forge-apps/#what-if-my-app-supports-multiple-products-

If the plan is to publish this app to the Marketplace, the current option is to publish two separate listings. To overcome the problem described here, each one can only have the required scopes for the corresponding product.

Hope this helps,
Caterina

2 Likes