It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hi Guys,
I am stuck between jquery versions.
Actually. i want to create a jsTree but problem is that JIRA support 1.7.2 version of jQuery.js and jsTree.js need 1.9.2 version of jQuery.js.
I added another jQuery file as a web resource but cannot access $ in velocity file.
AJS.$.fn.jQuery return the JIRA internal jQuery file version and after accessing $ in velocity there is an error on console which shows that $ is not a function.
Totally stuck help to solve this issue....
You can have 2 jQuery versions utilizing the noConflict. Please check:
https://api.jquery.com/jquery.noconflict/
http://stackoverflow.com/questions/1566595/can-i-use-multiple-versions-of-jquery-on-the-same-page
Hi Krupach, thanks for fast reply
i added two jQuery files in JIRA but i am not able to access $
can u brief it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mr Parashar,
You need to add just one jQuery that you need and right after including it or directly at the end of js file you put:
var myJQuery = $.noConflict(true);
after that you work with your version of jQuery using myJQuery instead of $.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for fast response,
means i have to add this line at the bottom of the jquery version file which i have to added in jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, or right after the script tag as shown under the stackoverflow link.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi added the below code in bottom of my jQuery file but at browser console could not find myJQuery object for accessing the functions it always says undefined.
var myJQuery = $.noConflict(
true
);
and what is script tag ? Why i care this ?
if i added above code in my jQuery file then it will be accessible with myJQuery object.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Krupach,
i added my jquery file in plugin descriptor and a command $.webResource.requireResource("")
and can't get any idea what to do further for accessing myJQuery object.
Thanks in advance..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mr Parshar
Were you successful in making jstree plugin work ?.
I am facing similar compatability issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.