Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1031657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T13:57:49+00:00 2026-05-16T13:57:49+00:00

I am trying to develop a plugin for jira and I’m having issues with

  • 0

I am trying to develop a plugin for jira and I’m having issues with jquery. I am pretty sure that its already part of the framework and all i need to do is include it but nothing seems to be working.

I have tried putting this in my atlassian-plugin.xml file

<web-resource key="jquery" name="jquery" >
    <dependency>jira.webresources:jira-global</dependency>
    <resource type="download" name="jquery.js" location="/includes/javascript/jquery.js" />
</web-resource>

I have tried it without the dependency as well

I have tried putting #requireResource("jira.webresources:jira-global") in my velocity template and that doesnt work either. THis is my js in my input.vm file

    <script type="text/javascript">
    jQuery(function($) {
        $('.questions').hide();
    });
</script>

Everything I seem to do just results in the Uncaught ReferenceError: jQuery is not defined

at a bit of a loose end now not really sure what to try next!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T13:57:49+00:00Added an answer on May 16, 2026 at 1:57 pm

    Take a look at the JIRA Subversion plugin for an example of how their resources get defined and included. It’s fiddly but it does work. The main documentation for this is at http://confluence.atlassian.com/display/PLUGINFRAMEWORK/Web+Resource+Plugin+Module

    Main page for the plugin:
    https://studio.plugins.atlassian.com/wiki/display/SVN/Subversion+JIRA+plugin

    The main plugin config file at
    https://studio.plugins.atlassian.com/svn/SVN/tags/atlassian-jira-subversion-plugin-0.10.5.4_01/src/main/resources/atlassian-plugin.xml
    has a web-resource element defined that says it depends on jira.webresources which is where jquery comes from in JIRA:

    jira.webresources:jira-global

    and then this resource is loaded by https://studio.plugins.atlassian.com/svn/SVN/tags/atlassian-jira-subversion-plugin-0.10.5.4_01/src/main/java/com/atlassian/jira/plugin/ext/subversion/issuetabpanels/changes/SubversionRevisionsTabPanel.java
    where it says

    webResourceManager.requireResource(“com.atlassian.jira.plugin.ext.subversion:subversion-resource-js”);

    The string in this call is crucial – it must be the “key” attribute of the top-level atlassian-plugin element plus a colon plus the “key” attribute of the resource element in atlassian-plugin.xml

    HTH,

    ~Matt

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to develop an rhq plugin for a service that requires metrics.
I'm trying to develop a small plugin that will do a sort-of auto-completion along
I'm trying to develop a plugin that shows website screenshot, when a user clicks
I'm trying to develop a JQuery plug-in that will access an outside XML feed
I'm trying to develop a plugin that takes a callback as the first argument
While trying to develop my first VS Addin, I am having issues in firing
I am trying to develop plugin using jquery-boilerplate-v3.1 and confused between this and $(this)
I'm trying to develop a plugin for Eclipse that will allow me to modify
I'm trying to develop my own horizontal accordion without having to use a plugin.
Hello everyone. I am trying to develop a Jquery plugin following the steps I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.