Hello:
I’m trying to convert a jira connect app to forge but I’m running into an issue. The app is loaded in the projectSettingsPage module and I need to get the project id of the project that is loading the app. We use the project id to associate data created in the app with the project that’s loading the app. In connect I’m able to add a placeholder on the url that is used to load the app to get the project id. When the app is loaded, the placeholder is replaced (by Atlassian) with the actual project id and I’m able to read it in the app. No such functionality seems to exist in Forge. The closest I’ve come to possibly finding what I need is in the view
object of the Forge bridge API. This object contains a getContext function that seems like it would be a good place to retrieve the project id but unfortunately it’s not there.
I would appreciate any assistance that anyone can provide.
Thanks.