Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

JIRA, project specific banner


    • Hi Team,

      Need help as on of the project in Jira is going to be stopped in a month. we need to display banner or meesage to users who select this Project in create issue screen .
      We need to even disable to use this project after few days.
      Please help to display banner when user selects this project and even when a jira is assigned to this group

3 answers

can we have something without addon

Hey Gunaa, 

I did some more research and found a page discussing this.

I made a modification to the script and was able to get something working similar to what you wanted. This will show up when a user navigates to the project, not when they try and create a ticket for the project. 

<p style="display: none;" id="demo">Sample Announcement</p>
if (window.location.href.indexOf("projects/SP") != -1) {
document.getElementById("demo").style = "display: block;";


Note: "SP" is the key of my project I want the announcement banner to appear on.

Like # people like this

This is really helpful, thanks!

This works fine.

Can you suggest how to add multiple (two) projects.

@Kian Stack Mumo Systems 

Is there a way to disable a jira banner once user logs in?


I didn't find a way to do that, but I did find another answer which shows how to make an announcement banner that can be closed by users.

<div id="mycrazyuniqueid" style="display:none;" class="aui-message aui-message-info closeable">
Announcement Banner Text
if ("mycrazyuniqueiddismissed") != "true"){
document.getElementById('mycrazyuniqueid').style.display = 'block';
document.addEventListener('click', function (e) {
var msgid =;
var msgtargetclass =;
if (msgid == "mycrazyuniqueid" && msgtargetclass == "aui-icon icon-close") {
console.log("Hide mycrazyuniqueid Info");"mycrazyuniqueiddismissed", "true");


This might be of use to you.  Once they read it they can close it and not see it again. 

Like # people like this

hello @Kian Stack Mumo Systems ,

the script that u wrote above for the announcement banner to appear on SP project, where do we put the script-

<p style="display: none;" id="demo">Sample Announcement</p>
if (window.location.href.indexOf("projects/SP") != -1) {
document.getElementById("demo").style = "display: block;";



@Kian Stack Mumo Systems 

@Priyanka khare

You place this in the announcement banner. Instructions for configuring the announcement banner can be found here. Please be aware that you can only configure the announcement banner on a Jira Server or Jira Data Center environment.



@Eswar Reddy For a banner that can be used for users not logged in you can use Scriptrunner Fragments.




import com.atlassian.jira.component.ComponentAccessor

if (!ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser())
{ return true }



Message to display



writer.write("<div style='background-color: white; border: 5px solid red; margin: 5px; padding: 2px; font-weight: bold; text-align: center'>"+

"You are not logged in!")


Like Nag likes this

@Kian Stack Mumo Systems is there a way to have this specific jira project banner done for in JIRA cloud?

@Ade Adegoke, not to the best of my knowledge.

Like Ade Adegoke likes this

@Kian Stack Mumo Systems 

Hi Kian, thanks for the script for display the banner for SP project. It work well

Could you share how can i put the individual banner for 300+ projects in Jira? Thanks!



I looked at the Marketplace to see if there were any apps to help. I didn't see anything specific in there. I suppose you could set up if/else conditions in the script I supplied earlier. That would be quite a bit of work though.

Thanks Kian.

I found this,  which can help to show banner for the individual project/issue related to the project.


Like Matthias Gaiser _K15t_ likes this

@HP - nice that you've found the article in our docs. I've also rephrased that help article as an article for the Atlassian Community. If you have any feedback what you improved/changed which might help other people, I'd be happy if you comment on the article.


Thanks for sharing!

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events