Chat for Service desk onClose event

Benny Ho
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!
January 8, 2025

Hi,

I need help on a custom onClose for Chat for Service Desk 

 

I want to trigger an event when users close the Chat for Service Desk 

What is the "on close" event I should be listening to?

 

Cheers

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
1 vote
Answer accepted
Peter Rafai
Banned
January 11, 2025

To trigger an event when users close the Chat for Service Desk, listen for the on Close event in your chat widget. Use the following code 

chatWidget.on('close', function() {
console.log('Chat has been closed!');
});

0 votes
Benny Ho
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!
January 12, 2025

Thanks for that Peter, will give that a go

Peter Rafai
Banned
January 13, 2025

My Pleasure

TAGS
AUG Leaders

Atlassian Community Events