Skip to content

Instantly share code, notes, and snippets.

@dodok1
Created September 11, 2013 15:32
Show Gist options
  • Save dodok1/6525310 to your computer and use it in GitHub Desktop.
Save dodok1/6525310 to your computer and use it in GitHub Desktop.
clear notification scheme for all projects
import com.atlassian.jira.component.ComponentAccessor
def pm = ComponentAccessor.getProjectManager()
def nsm = ComponentAccessor.getNotificationSchemeManager()
pm.getProjectObjects().each{project->nsm.removeSchemesFromProject(project)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment