Using jQuery in Jira

If you want to make some customizations for your JIRA install using javascript then there are some good news; jQuery is bundled into the package. The only small downside is that you’ll have to bind the $ alias yourself:

(function($){
   $(document).ready(function(){
      //your code here
   });  
})(AJS.$);

The AJS, Atlassian JavaScript, is a library that you can use when making gadgets in JIRA, but you can also use if if you’re just adding features in your banner. The documentation can be found here.

One thought on “Using jQuery in Jira

  1. This solution is more comfortable than using AJS.$(document).ready(function() {…});

    Thank you!

Leave a Reply