You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi all,
I am trying to modify the embedded code for the widget to allow it to open automatically when someone loads the page, vs. having the user click the "?" logo to open up the widget. Any insight on what the code should be?
OG code:
<script data-jsd-embedded data-key="xx" data-base-url="https://jsd-widget.atlassian.com" src="https://jsd-widget.atlassian.com/assets/embed.js"></script>
Hello Anthony,
Welcome to Atlassian Community!
It's possible to make the widget to open automatically when accessing a page.
We tested here and the following code works correctly:
<script add your widget script here </script>
<script type="text/javascript">
setTimeout(()=>{
//gets the iframe on which the widget is embedded
let iframe = document.querySelector('#jsd-widget');
//gets the content of the iframe
let iframeContent = iframe.contentDocument;
//gets button which opens the widget
button = iframeContent.querySelector('#help-button');
button.click();
}, 1000)
</script>
Please, give it a try and let us know how it goes.
Regards,
Angélica
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan. &nb...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.