Issue
The Service Portal Announcement feature allows admins to create simple announcements that display as a banner at the top of the Service Portal page. Admins can create multiple announcements, set text, and set how long the announcement displays.
When implementing this feature, the text written in the Summary field displays on one line within the associated Service Portal. If you add new lines or multiple consecutive lines, they are ignored by the system when displaying the actual text.
This is expected behavior because the Announcement feature does not support multiple lines or the use of code tags to perform line breaks. The following image shows an example of how this announcement appears.
Resolution
To work around this limitation, you can use multiple announcements that are active at the same time, and then have them displayed one after the other. You can identify which announcement appears first using the Display first checkbox on the Announcement form.
Note: Let users know to expand the announcement because by default multiple announcements are not expanded.
If there is a tie between two records set to display first, the sort order defined in the glide.service_portal.announcement.default.sort_order system property is honored.
Default sort order for announcements: glide.service_portal.announcement.default.sort_order
The sort order for banner announcements:
- Type: choice list
- Default value: Start Date Descending
Other options for Default value include:
- Start Date Ascending: The oldest start date appears first.
- Start Date Descending: The most recent start date appears first.
- End Date Ascending: The oldest end date appears first.
- End Date Descending: The most recent end date appears first.
Related Links
For further information, see the following documentation: