Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can we use the jstree and context menu jQuery plugins in the JIRA issue view?

Anja Kleebaum September 18, 2018

We develop a JIRA plugin that adds an issue module and an issue tab panel to the issue view. We use the JIRA version 7.11.1. The code and some screenshots of our JIRA plugin can be found here:

https://github.com/cures-hub/cures-condec-jira

We want to use the context menu and the jstree jQuery plugins in the issue module and issue tab panel. Unfortunately, our jQuery version 1.9.1 seems to be in conflict with the internal jQuery version of JIRA. This seems to be a known issue but we don't have a solution for it:

https://community.atlassian.com/t5/Answers-Developer-Questions/jQuery-in-JIRA/qaq-p/540652

Does anybody know how we can integrate the context menu and the jstree jQuery plugins in the issue view? Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Anja Kleebaum October 13, 2018

We now use our own jQuery 1.9.1 version that is compatible with the context menu and the jstree jQuery plugins.

We changed one line in the jquery.js file:

From

window.jQuery = window.$ = jQuery;

... to ...

window.jQueryConDec =  jQuery;

We replaced $ with jQueryConDec wherever we use our jQuery version. We also did this in the other JS libraries (each jstree.js).

Anja Kleebaum October 13, 2018

We will try to replace the jQuery contextMenu plugin with the dropdown AUI, as explained here: https://community.atlassian.com/t5/Jira-questions/Is-there-an-AUI-for-creating-a-context-menu/qaq-p/893946

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events