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

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

176 views 0 4
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