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

Import Javascript from BitBucket

I've got some javascript that I'm running in an html block on a page I have and I'd really like to just use the .js file in our internal bitbucket instead of copying and pasting it into a script block. So something like this...




<script src="">

AJS.toInit(function() {





If I look in chrome's developer tools it shows that the script is being included but nothing in my script block is ever running. I even stripped everything out and tried just having a console.log("Did this run?"); call in there and saw nothing. 


P.S. I'm basically a rookie to web development so it's a pretty good chance I'm missing a is the sky blue piece here.


1 answer

1 accepted

0 votes
Answer accepted

Like I said, is the sky blue. The src needed to be in a different element than the code block.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,393 views 6 6
Join discussion

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