[scriptRunned] how can I set AnnouncementBanner


Is there another way to set AnnouncementBanner than using:

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.event.api.EventPublisher
import com.atlassian.jira.config.properties.APKeys
import com.atlassian.jira.config.properties.ApplicationProperties

ApplicationProperties prop = ComponentAccessor.getApplicationProperties()

def bannerText = “”“some text up to 255 chartecters”""
prop.setString(APKeys.JIRA_ALERT_HEADER, bannerText)

This script works but have a limitation to 255 characters and since I have some setting in AnnouncementBanner I need lot more.

Best Regards,

Hi @LukaszS

please use prop.setText

Best regards
Adam Labus

So simple,
Thank you Adam.