Add image to the Service Desk login page

We are upgrading our Service desk from 3.1.6 to 3.4.1.  In our current version, we have an image that displays in the center of the login page (above the login panel) that we injected using the CUTE add-on.  The code does not seem to work in the newer version, and I've searched everywhere and cannot find an answer.

In our current environment, the template.js code is as follows:

AJS.toInit(function($) {
  if ($('#jsonPayload').length) {
      var banner = jQuery {
           '<div id="cute-jsd-banner">'
          + '</div>';
      banner.insertAfter('#header');
}
});

This works in version 3.1.6 but not in 3.4.1.  Can anyone tell me how to get the image to display?

Thanks,

Barby

1 answer

This widget could not be displayed.

Hi Barby,

  • Are you getting any errors in the Developer Console?

In the most current version of Service Desk the CUTE default code to show the image using the following:

// Execute after the page was fully loaded
jQuery(function(jQuery){
    "use strict"
    
    var elementToMove = jQuery('#cuteMessageContainer');
    elementToMove.insertAfter('#header');
    
}); 

I have not been able to test it myself but if your code supports the above snippet you may be able to use that.


Cheers,

Branden

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

511 views 3 18
Read article

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