You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi Team,
We have added an announcement banner to show some custom messages only for users on the login page or display only to those who have not logged in to Jira.
code seems to work but also shows when logged in user refreshes the page for a second and goes off which is kind of annoying
<div class="infoBox loginHelp" style="margin: 4px; padding: 2px;">
<ul>
<li>Some custom message 1 </li>
<li>Some custom message 2 </li>
<li>Some custom message 3 </li>
</ul>
</div>
<style id="hideLoginMods" type="text/css">
.infoBox.loginHelp ul > li {
margin-bottom: 3px;
}
/* hide the default login advice (delay to after Jira runs) */
#sign-up-hint, #forgotpassword, #publicmodeoffmsg, #login-form-cancel {display: none;}
</style>
<script type="text/javascript">
//only show the custom login advice on login, banner edit, and forgot login pages
$(document).ready(function() {
var val = $("input[title='loggedInUser']");
if (val) {
val = val.val();
}
if (val) {
$(".loginHelp").hide();
}
if (window.location.href.indexOf("EditAnnouncementBanner") != -1) {
$(".loginHelp").show();
}
});
</script>
Any help would be appreciated, thanks in advance.