[scriptRunned] how can I set AnnouncementBanner

Hello,

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()

prop.getString(APKeys.JIRA_BASEURL)
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,
Lukasz

Hi @LukaszS

please use prop.setText

Best regards
Adam Labus

So simple,
Thank you Adam.