Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Where's the jQuery ui css in Jira 4.3?

Justin Shapiro
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 1, 2011

I'm trying to upgrade my gadget that uses the datepicker from jQuery UI. Was easier prior to 4.3. I got the field to work but I need to know what resource to include to get the css.

By the way, what happened to draggable? Several included ui components require it but its not included which causes exceptions.

5 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Arne Schirmacher June 7, 2011

you need to include the required draggable javascript file yourself, not all jQuery files are included in JIRA.

In my atlassian-plugin.xml I have to use

   <web-resource key="de.pixsoftware.jira.plugin.some.key" name="Resources">
<resource type="download" name="jquery.ui.droppable.js" location="js/jquery.ui.droppable.js"/>
<resource type="download" name="jquery.ui.selectable.js" location="js/jquery.ui.selectable.js"/>
<resource type="download" name="jquery.ui.theme.css" location="css/jquery.ui.theme.css"/>
<dependency>jira.webresources:jira-global</dependency>
</web-resource>

Justin Shapiro
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 8, 2011
yeah, I used to do it that way too. Then I was able to use com.atlassian.auiplugin:jquery-ui-other for a while which was great but now they've buggered it up. that's a regression in my book.
Justin Shapiro
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 24, 2011
Guess this is the right answer since it's the way I had to do it.
1 vote
frother
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 10, 2011

I have indentified the issue and raised a bug. Will be scheduled to be fixed for 5.0. Again apologies for any inconvienience.

https://jira.atlassian.com/browse/JRA-25039

0 votes
Jayashree Shetty
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2014

Hi. I am too facing the same problem of defining a date picker in my custom gadget. Could anyone please provide step by step instruction on how to have a date picker in a gadget. i tried the way as suggested but it isnt working, its showing an error in the gadget. I have downloaded thejquery datepicker file. How to import/refer in my custom gadget, what changes to be done in the atlassian.xml file, how to make use of this control. Please can anyone provide a solution?

0 votes
frother
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 19, 2011

Justin,

Apologies for your frustrations. Are you able to please post the contents of the <resource> defined in you atlassian-plugin.xml? It will help greatly in diagnosing the issue.

Cheers!

Justin Shapiro
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 22, 2011
From my gadget xml #requireResource("com.atlassian.jira.gadgets:common") #requireResource("com.atlassian.jira.gadgets:autocomplete") #requireResource("jira.webresources:global-static") #requireResource("com.atlassian.auiplugin:ajs") #requireResource("com.atlassian.auiplugin:jquery-ui-other")
0 votes
BenA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 9, 2011

I've taken a look at this and we think the CSS was never actually bundled - presumably people were only using the javascript and didn't need the CSS.

Draggable should still be included along with the AUI core (jquery-ui.js is loaded by default and that includes draggable).

You should still be able to include jquery-ui-other, which adds Position, Droppable, Resizable, Selectable and all widget/effect modules (to put it another way, it adds everything all the jQuery UI javascript that's not included in core). If you can provide further details on what went wrong trying to use it, we can investigate.

Justin Shapiro
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2011
If I use the jquery ui in say the velocity template of an action it works fine. I get jquery-ui.js and jquery-ui-other.js all dependencies are found and it works. If I try to use it in a gadget not so much. I still get jquery-ui.js and jquery-ui-other.js but I get errors based on dependencies missing such as 'd.widget is not a function'. If I include the missing pieces in jquery-ui-other.js or define and include my own resource containing all of jquery ui 1.8.1 it works.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events