Is is possible to disable subscription emails but leave notificaiton emails active (for a test installation)?

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?

1 answer

1 accepted

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

232 views 3 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you