Issue collector submit event

Nisa Demir
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 12, 2024

Hi everyone,

I added issue collector to my webpage with custom trigger button. Now i want to log when new issue submitted from frontend via Issue Collector. As you now, I cant access iframe content since it is restricted by the same-origin policy on browsers. For these situations there is a postMessage mechanism. I added following code to my frontend but capture just 3 event for issue collector.

window.addEventListener('message', (event) => { 
console.log('Message received from iframe:', event.data)
});

Events:

Message received from iframe: collectorLoaded //when form is open

Message received from iframe: {"frameHeight":884} //when form is open

Message received from iframe: cancelFeedbackDialog. //when form is closed

CancelFeedbackDialog event is fired if submit is succesfull (after 5 seconds) but also normaly close the form. I would like to get an event when submit is success or fail, not closing form. Is it possible?

Thank you

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events