You are not logged in.
Pages: 1
Hello,
using GLPI 9.5.5, developing a notification plugin, lets call it "My". Documentation on example plugin is not updated, so have to debug many things. Have no previous experience with GLPI, so might miss some knowledge.
Using my own notification mode "My" (not predefined "::SMS").
I register my notification mode in "plugin_setup_my" (using
Notification_NotificationTemplate::registerMode('my', 'My', 'plugin_my', 'my')
), and can see my notification mode on Notifications page and enable it, also I can set up configuration field for my plugin.
I also register class
Plugin::registerClass('PluginMyNotificationEventMy');
there.
Looks like no notification with mode "my" is created, e.g. upon ticket update.
I checked DB and table "glpi_notifications_notificationtemplates" which seems to be connection between notification and notification template has field "mode". But how can I affect it? Currently all notifications are created with mode "mailing" (I have email notifications also enabled if it matters).
Docs at glpi-user-documentation dot readthedocs dot io/fr/latest/modules/configuration/notifications/definitions.html says (link to 10.0, but 9.4 says same), there should be a field "notification mode" for notification configuration, between "Type" and "Event". I can see both "Type" and "Event" dropdowns, but no "Notification mode".
Upon ticket creation, as I can see from debug log, Notification class looks for "glpi_notifications_notificationtemplates" rows having mode in ('maliling', 'my') but only finds 'mailing' of course, so no custom notification is added to notification queue.
What am I doing wrong?
Thanks.
Offline
Pages: 1