I have cloned our Jira Production environment, and want to place an announcement banner with a red background.
Can anyone advise the HTML text I would use to do this.
Thanks in advance.
This works for me in JIRA 6.2:
<!-- Message Banner -->
<div style="background-color: linen; border: 3px solid darkred; margin: 4px; padding: 2px; font-weight: bold; text-align: center;">
Maintenance Notification: This Jira environment will be offline today Wed Jan 21 from 12:15 to 12:30 EST for a memory upgrade.
</div>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm trying to add it in announcements without any luck? Is there a step I'm missing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for this, it worked perfectly! Greatly appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Place the following code in the announcement banner
<script> (function($){ $(document).ready(function(){ $(".alertHeader").css("background-color","red"); }); })(AJS.$); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Probably easier just to place the text in a <div style="..."> isn't it? Bit easier to understand and make changes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do this:
<div class="global-warning" width="100%" align="center">Text</div>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to refer the document in the announcement banner you can use the below one
<div style="font-weight: bold; text-align:center; color:green;">Yay! your jira is upgraded to 8.13.1, what's new?
<a style="color:blue;"href="https://confluence.atlassian.com/jiracore/jira-8-13-long-term-support-release-change-log-1018788437.html">know more</a></div>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How can we update the banner with timeout?
something like below
<!-- Message Banner -->
<div style="background-color: linen; border: 3px solid darkred; margin: 4px; padding: 2px; font-weight: bold; text-align: center;">Testing</div>
<script>
(function($){
$(document).ready(function(){
$(".alertHeader").timeout:1000;
});
})(AJS.$);
</script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.