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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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