Tell us how you use Jira Service Desk and get a Starbucks gift card for this! Share your experience to help us design a new solution for efficient communication with customers!

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Talk discussion resolved


In the current example, the onWidgetReady function is defined on the page before the code of the widget. The function name is specified in the data attribute of the script used for loading a widget (data-on-ready="onWidgetReady"). After initialization of the widget, the onWidgetReady function will be called, which will lead to the opening of the widget and its closing after 10 seconds. Talk


Code Block
<!DOCTYPE html>
<h1>My page with Customer Case Widget</h1>
    function onWidgetReady(invertState) {
        setTimeout(invertState, 10000);

<script data-cc-embedded data-key="ee8f9393-42da-41d1-93ad-205d44e5181e" 
src=""> </script>