How to find notification rules

I am trying to find the list of a user's watched builds. I have a

NotificationRulesManager
, with which I can (I think) get the list of notification rules using getUserNotificationRules, but to do so I need some magic strings.

Where can I find the values for notifierType?

I have tried things like "BUILD_FAILED", "ALL", "*" but with no success.

Thanks

Note: If there's a better way to get the watched builds list, please let me know

<bb />

Message was edited by: Ben
0
2 comments

Please take a look at jetbrains.buildServer.status.StatusProvider::getWatchedBuildTypes()
You still need to know notifier type which rules you want to use. Notifier type is a name of notifier plugin, for Email notifier it is "email", for Jabber - "jabber". Other notifier plugins can use their own names. To obtain list of registered notifiers use jetbrains.buildServer.notification.NotificatorRegistry::getNotificators()

0
Avatar
Permanently deleted user

Okay, great I'll go ahead with that

(Actually StatusProvider appears to be deprecated), but hopefully the notifier names is all I needed

Thanks

<bb />

0

Please sign in to leave a comment.