It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Nic Brough Community Leader Oct 18, 2016

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

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 Sign up to answer
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

1,099 views 7 0
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you