Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

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

1 answer

can we have something without addon

Hey Gunaa, 

I did some more research and found a page discussing this. https://community.atlassian.com/t5/Jira-Core-questions/Limit-announcement-banner-to-specific-sections-in-JIRA/qaq-p/166841

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>
<script>
if (window.location.href.indexOf("projects/SP") != -1) {
document.getElementById("demo").style = "display: block;";
}
</script>

 

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?

@Eswar Reddy

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
</div>
<script>
if (AJS.Cookie.read("mycrazyuniqueiddismissed") != "true"){
document.getElementById('mycrazyuniqueid').style.display = 'block';
}
document.addEventListener('click', function (e) {
var msgid = e.target.parentElement.id;
var msgtargetclass = e.target.className;
if (msgid == "mycrazyuniqueid" && msgtargetclass == "aui-icon icon-close") {
console.log("Hide mycrazyuniqueid Info");
AJS.Cookie.save("mycrazyuniqueiddismissed", "true");
}
});
</script>

 

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

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>
<script>
if (window.location.href.indexOf("projects/SP") != -1) {
document.getElementById("demo").style = "display: block;";
}
</script>

 

?

@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.

 

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

78 views 0 4
Read article

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