How to send data to dialog modal in jira forge custom UI app?

Hai all,
I created another app to show modal in custom UI app that defined in the below link. It already have lengthy issue and raised in this issue link.

Hope it will fixed soon. Because it’s very important to show modal for the app that i creating. So i started to working with modal. In modal i have some issues. While sending data to modal i have undefined error.

https://developer.atlassian.com/platform/forge/runtime-reference/custom-ui-bridge/

I am using the same code that defined in this link to create and send data to modal. But in my-modal-resource.js file, I have the following error.

Cannot read property ‘customKey’ of undefined

Why this issue occurs? Kindly share your thoughts.

Thanks in advance…

I found answer to this question. need to get customKey using context.extension.modal.customKey . It’s need to be changed in https://developer.atlassian.com/platform/forge/runtime-reference/custom-ui-bridge/

Can i use resolvers for the new app that i created to show modal? If yes how can i define resolver function to that modal app?

Hello,

Do you know how to do it the other way around?. I mean passing data from dialog modal to page where it was launched, for example to update some JSX(in “launching” page) elements with value selected from modal dialog.

Regards,
Edgar

Never mind, I found out it is possible sending data from Modal dialog to the to page where it was launched, using the payload when closing the view of the Modal dialog.