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

AJS.(document).ready triggering when plugin is not loaded Edited

I have a plugin (on the right tab that has the "People" etc) that on refresh works and executes a function that changes images.
I tried document load/ready, window load/ready but when i click in another issue the element is not present - only after full page load.

On a velocity template:

<script type="application/javascript">



function changeImage(){    

var element = document.getElementById(id);





How can i define an event that when i navigate to an issue it will only execute when the page is fully loaded?


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

558 views 6 18
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