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