How to Customise the Login Gadget?

I need to customize the login screen and so tried with script as it is a simple text change but i am unable to get the references of the dom elements. Is there any easy way to customize the Login gadget other than the way specified in documentation (

4 answers

Hi Spatruni,

This is how we have managed to get reference of the DOM elements from the login gadget:

//recursive function until element is detected function checkElement(){
        setTimeout(function() {
		var iframe = document.getElementById('gadgetID');
		var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
		var element = innerDoc.getElementById('elementID');
		if(typeof(element) !== 'undefined' && element != null) {
			alert('DOM Element is detected');

AJS.toInit(function() {
	AJS.$(window).load(function() {	
                //check for iframe loaded. This is good with browser forward and back button reload 		AJS.$(".gadget-iframe").ready(function(){

Hi Atlassians,

Any comments on this please??


Unfortunately there is no other because the login gadget is loaded via an iframe, which makes it very hard to get to the DOM with javascript. The jar customization is currently the only way to go, If your company does not have the required time/skill to make this happen, I'm more than happy to find the best 3rd party expert to help you based on your requirements.

My requirement is to remove the hyperlink "Can't access your account" from the login gadget. So instead of editing the soy file which is mentioned in the documentation, i edited the property "gadget.login.forgotpassword" from the property file. Hence resolved.

Hi! how did you edit this property?

Make the property value to blank.

Suggest an answer

Log in or Join to answer
Community showcase
Alexey Matveev
Published Saturday in Jira

How to run Jira in a docker container

Everything below is tested on Ubuntu 17.10. I prefer to use Jira in a docker container because: 1. I can install Jira with a couple of commands. 2. I can start and stop Jira just by starting and s...

155 views 3 7
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
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