Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Auto Click-Through JSD Widget Button Edited

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: 

1 answer

1 accepted

1 vote
Answer accepted

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

This worked beautifully! Thank you!

Like Angélica Luz likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

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...

165 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you