Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Announcement banner per project

Katya Godneva
Contributor
February 4, 2019

Announcement banner is a great tool, but I wonder if I can set it per project, not for the whole instance?

Thanks in advance for ideas.

1 answer

1 accepted

0 votes
Answer accepted
Mario Carabelli
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 4, 2019

Hi @Katya Godneva (

you can use html, css and javascript in the banner.

 

This means you could get the current URL where the banner is displayed in javascript via

def currentURL = window.location.href 

(Source: https://stackoverflow.com/questions/1034621/get-the-current-url-with-javascript)

Because the jira URLS are pretty regular you could parse this Url for the Project Key (Example URL<base url>/projects/PROJECT_KEY/issues/?filter=allopenissues) where you want to display some specific banner.

parsed_key = extractKey(currentURL)

Then you create a javascript function which gives other content based on the

display_banner(PROJECT_KEY)

and define the banner you want to show in the display_banner function.

 

I don't have the time (or inclination) to flesh this out or define the mentioned functions but I hope this idea gets you started.

With kind regards
Mario

Katya Godneva
Contributor
February 4, 2019

@Mario Carabelli thanks a lot! looks like it!

Like Mario Carabelli likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team '25 europe, atlassian event, barcelona 2025, jira, confluence, atlassian intelligence, rovo, ai-powered collaboration, developer tools, agile teams, digital transformation, teamwork solutions, atlassian conference, product announcements

🌆 Team '25 Europe registration is now open!

Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.

Register now
AUG Leaders

Atlassian Community Events