NotificationSchemeService don't have any method to assign new notification scheme to the project. However to change Permission scheme, we can do with method "assignPermissionSchemeToProject(ApplicationUser user, Long schemeId, Long projectId)" present in PermisionSchemeService.java.
Need help?
I think you can use:
notificationSchemeManager = ComponentAccessor.getNotificationSchemeManager();
NotificationScheme notificationScheme = notificationSchemeManager.getSchemeObject(<some id>);
notificationSchemeManager.addSchemeToProject(project, notificationScheme);
Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!
Start here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.