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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Scripts in the announcement Banner Edited

Hello Community,

We hace some scripts placed on the Announcement Banner,

Lately thev've been growing up, so my question is 

Is there a way to leave there just the call to inject?

Such as Velocity's #Parse() method?

Thank you all in advance

1 answer

1 accepted

0 votes
Answer accepted
Leonard Chew Community Leader Feb 10, 2020

You could probably write somthing with js, but you'd still need to store the condition-logic somewhere (which template is taken at which condition) and also you'd need to store the templates on a client-accessible place, so that sounds complicated.

The easier approach would be to use a plugin.

The Scriptrunner Plugin for instance, brings some nice options to conditionally write a message. Every message also has a button to enable/disable it.

That can help administer the messages without needing to overload the banner with tons of javascirpt and it isolates the single messages so that a syntax error does not destroy all messages.

Hello Leonard ,

thank you for your answer.

I'll go with the Plugin option although the time it can take.

Thanks

Like Leonard Chew likes this

Suggest an answer

Log in or Sign up to answer
TAGS

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