Query to check project specific outgoing mailbox settings

Some of our projects are configured with separate outgoing mail address than the default address. Wed have huge number of projects and prettty difficult to browse one by one to check the associations. Could any body of you suggest me a query to find it?

1 answer

0 votes
Henning Tietgens Community Champion Mar 24, 2013

You can use Script Runner plugin and this script to list all projects and the corresponding from email.

import com.atlassian.core.ofbiz.util.OFBizPropertyUtils
import com.atlassian.jira.project.ProjectKeys

pm = componentManager.projectManager
result = ''
pm.getProjectObjects().each {proj->
    result += proj.key + ": " + OFBizPropertyUtils.getPropertySet(proj.getGenericValue()).getString(ProjectKeys.EMAIL_SENDER) + "\n"
}
result

If it's null is the default from address.

Henning

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

432 views 7 5
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