I am working on app development with using Forge Custom UI on JIRA and I need to get current issue id, I want to use the data on glance panel of the issue. I wonder if there is a way to get current “Issue ID”.
I read something about the UI Kit hook “useProductContext” to get issue id. how to get the issue id with using Custom UI or how can i get current issue id?
Thank you so much for the answer but can you explain that answer a bit more please? Where should i implement these codes? Should i use these codes for App.js and index.js that is in the src folder of the app? And also you mean i should implement these code with using bridge and resolver right?
You should be able to add a return to the beginning of your function:
Note that we are currently working on returning runtime errors experienced in the resolver back to the invoke function. In the meantime, you may experience that the invoke function resolves with undefined data when there is a runtime error. The only way to see the runtime error is to run forge logs or forge tunnel and observe if there are any errors in the logs after you load your app and invoke the resolver function.