I have the following in the Announcement banner to add a banner to the EDG space, however the banner is also showing on the EDGGD space, which is not moving. Is this a bug?
Any idea's how to fix this?
<p style="display: none;" id="avail"></p>
<p style="display: none;" id="start">MIGRATION IN PROGRESS - THIS PROJECT IS LOCKED</p>
<p style="display: none;" id="done">MIGRATION COMPLETE - THIS PROJECT IS LOCKED<br>New location: https://lgslabs-jira.caci.com</p>
<script>
if (window.location.href.indexOf("projects/EDG") != -1) {
document.getElementById("done").style = "background-color: palegreen; border: 2px solid red; margin: 4px; padding: 2px; font-weight: bold; text-align: center; display: block;";
}
</script>
@Diane Burns If you are following the steps here to add an announcement banner it is applicable to all Jira projects. So you will need to be more specific in your JavaScript. I believe the following will work for you:
<p style="display: none;" id="avail"></p>
<p style="display: none;" id="start">MIGRATION IN PROGRESS - THIS PROJECT IS LOCKED</p>
<p style="display: none;" id="done">MIGRATION COMPLETE - THIS PROJECT IS LOCKED<br>New location: https://lgslabs-jira.caci.com</p>
<script>
if (window.location.href.indexOf("projects/EDG/") != -1) {
document.getElementById("done").style = "background-color: palegreen; border: 2px solid red; margin: 4px; padding: 2px; font-weight: bold; text-align: center; display: block;";
}
</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.