We have a production and test Jira environment installed. The test environment uses a copy of the production database therefore all of the users' notification settings are the same. We would like to disable subscription emails so people aren't getting those daily but would like to leave ticket update notifications active.
There is a section in bin/senenv.sh that allows you to disable all emails (-Datlassian.mail.senddisabled=true). Is similar possible for just subscriptions?
I'm not aware of any system property that can directly control subscription emails. To achieve the desired result you might remove all subscriptions on your test system. This is how i do it in the Groovy Script Runner plugin:
import com.atlassian.jira.ComponentManager
import com.atlassian.jira.issue.subscription.*
sm = ComponentManager.getComponentInstanceOfType(SubscriptionManager.class)
subscriptions = sm.getAllSubscriptions();
subscriptions.each () {
sm.deleteSubscription it.getLong("id")
}
Updated for Jira 7.X. Tested on 7.2.9
import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.subscription.SubscriptionManager SubscriptionManager sm = ComponentManager.getComponentInstanceOfType(SubscriptionManager.class) def subscriptions = sm.getAllFilterSubscriptions() subscriptions.each () { sm.deleteSubscription it.getId() }
Thanks,
Parashar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.