Gadget configuration - hourglass and help messages in UserPref


I'm developing a gadget under Jira. Now that it works quite good, I'd like to improve the user experience. I did some research but didn't found:

1) is it possible to add an hourglass or something pretty to my gadget while it is loading? (it doesn't take lots of time, about half a second but it would be prettier with an UI for that part...)

2) is it possible to add some help messages under the fields in the userprefs (you know, the tags like <UserPref name="bla" datatype="string" display_name="bla" />) ? The display name is not enough to be clear about the meaning of a field...

Thank you!

1 answer

1 accepted

Ok, both comes out of the box when using the Jira-like style of gadget definition:

&lt;Require feature="views"/&gt;
&lt;UserPref name="xxx" datatype="hidden" default_value="xxx"/&gt;
&lt;UserPref name="isConfigured" datatype="hidden" default_value="false"/&gt;
&lt;script type="text/javascript"&gt;
  (function() {
        baseUrl: "__ATLASSIAN_BASE_URL__",
        useOauth: "/rest/gadget/1.0/currentUser",
        config: {
          descriptor: function (args) {
            return {
              theme: "gdt",
              fields: [{
                userpref: "xxx",
                label: 'My Xxx',
                description: 'blabla',
                type: "textinput",
                value: gadget.getPref("xxx")
        view: {
          onResizeAdjustHeight: true,
          enableReload: true,
          template: function(args) {
              var gadget = this;

Suggest an answer

Log in or Join to answer
Community showcase
Maarten Cautreels
Posted Thursday in Off-topic

Friday Fun: What's your favourite beer/drink

As a Belgian, beer-lover and home brewer, beer is one of my great passions. I love the fact that with just a few ingredients (usually just water, hop and malt) you can create so many different tastes...

285 views 38 9
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot