Limit announcement banner to specific sections in JIRA

When add announcement using JIRA announcement banner section, it will display all over the JIRA. Is it possible to limit announcement only for given sections (ex: Only for issue navigator, dashboards, particular service desk)

2 answers

0 votes

No, the whole point of the banner is that it is visible everywhere.

0 votes
Mahesh S Community Champion Oct 19, 2016

We do have a html container for the Announcement banner. So go ahead and utilize it using javascript. Use a similar code as given below. Here, I am checking the browser URL for dashboards or issue navigator with "secure/Dashboard" and "issues" respectively. If yes, I will display the announcement banner in the browser page.

<p style="display: none;" id="demo">Sample Announcement</p>
<script>
if ((window.location.href.indexOf("secure/Dashboard") != -1) || (window.location.href.indexOf("issues") != -1)) {
    document.getElementById("demo").style = "display: block;";
}
</script>

OR you can refer to the class name which is as "aui-layout aui-theme-default ka ajax-issue-search-and-view page-type-navigator" for issue navigator screen and disable the display.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

933 views 5 18
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