Add alert to inform user

How it is possible to add a alert to inform the customer regarding critical situation. E.g. The license will expire soon.

3 Likes

Unfortunately the alerts feature is not available for plugin developers to use as the javascript that provides it is an internal API.
I have opened up a feature request ([BSERV-10323] Make Alert JavaScript API public - Create and track feature requests for Atlassian products.) to make this public which you can vote on and watch for updates, but we can’t guarantee its priority or completion date.

Until then, the accepted way for plugins to provide these kind of alerts is by placing an aui.message.warning or aui.message.error banner (see Messages - AUI Documentation for details) in the web panel bitbucket.notification.banner.header (see https://developer.atlassian.com/bitbucket/server/docs/latest/reference/web-fragments.html for details)

This will look something like:

1 Like