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);
https://docs.atlassian.com/software/jira/docs/api/8.0.0/com/atlassian/jira/scheme/SchemeManager.html#addSchemeToProject-org.ofbiz.core.entity.GenericValue-org.ofbiz.core.entity.GenericValue-
It looks like you're new here. Sign in or register to get started.