Scripts in the announcement Banner

Adria Alonso
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 10, 2020

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

Adria Alonso
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 12, 2020

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