Hi,
In my company, we migrated recently from Bugzilla to Jira and most of issues are assigned to email alias(eg: tools-team, qa-team, etc.) and also added email alias in watchers-list. Due to alias user accounts, we are receiving email duplication. So, I would like to send all recipients in one mail to reduce email duplication spam.
eg: sreddy, qa-team gets two emails.
To send All Recipients in a same mail on issue create/update/comment, which file do i need to modify in Jira source?
Thanks in advance!!
Community moderators have prevented the ability to post new answers.
This information may be useful to ohers. I figured it out, how to send maill to All recipients in same mail. To send all of them in same mail we need modify the existing code in MailListener.java will fix the problem.
-Srujan
Well yes, of course you can customize JIRA but that is not something many people do, it will have repeated costs associated with maintaining the. M changes. My previous comments related to confiuguration of the product...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok. I have the code, but I don't see in the code where to make the CC list visible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does anyone know what I need to change in MailListener.java to show the CC list?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, I downloaded the source for the version we have installed, 5.2.1 and used -classpath pointingto the compiled version. It looks like there are a lot of classes missing.
For example
com.atlassian.jira.component.ComponentAccessor
com.atlassian.jira.event.issue.AbstractIssueEventListener
is the source we get different than the compiled source we get when we install using .bin? I just need to modify this one file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've no idea what you're trying to do, the sourcecode is intact, look again, perhaps you're not taking account of the project modularisation of the source bundle?
$ cd atlassian-jira-5.2-source/ $ find . -name ComponentAccessor.java ./jira-project/jira-components/jira-api/src/main/java/com/atlassian/jira/component/ComponentAccessor.java
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are running currently on v5.1 and you need modify the code in following method.
protected void addMailItems(List<SchemeEntity> schemeEntities, IssueEvent event) throws GenericEntityException
{
.
.
.
}
Source file location:
atlassian-jira-5.1-source\jira-project\jira-components\jira-core\src\main\java\com\atlassian\jira\event\listeners\mail\MailListener.java
**NOTE: By modifying MailListener.java will breaks the email format(HTML/Text), either you can send only Text format or HTML format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where is this source code? I tried
https://my.atlassian.com/atlassian-jira-5.1-source/jira-project/jira-components/jira-core/src/main/java/com/atlassian/jira/event/listeners/mail/MailListener.java
Can someone give me the full path to the source code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ATlassian dont expose raw source code on a web server like that, it is accessible through https://my.atlassian.com, next to your relavent product license.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I see the version of MailListener.java for v 3.1.3.3. I am using 5.2.1 and can't find an earlier version of the java file. Can someone point me to this and where in the code I would need to change to show the CC list.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't see MailListener.java only MailListener.class
Where do I get the .java class.
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.
You have to modify the MailListener.java file to show CC list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are noticing that the emails do not contain other addresses in the CC line. My users would like to know who received the emails. Is it possible to do this or do I have change the MailListener.java file as well?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd agree with Andy, it would be a lot easier to modify your notification schemes & your local configuration than deep diving into the Jira source. The root of the problem is that only your mail server knows who is on a distribution list so Jira can't de-dupe it.
The easiest way is to replicate the distribution lists as groups in Jira (assuming every member of the distribution list is a user of Jira), that way Jira can de-dupe the list.
If not, then the end users have to accept that if they want to belong to so many distribution groups, they will get lots of emails!
The only other option I can think of would be to modify the email templates to include some kind of marker in the subject line which could be used by email client filters but that depends on every user setting up their own rules so not an ideal solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Andy and Mattew for the quick response.
Mattew,
Jira does not allow to assign issues to groups and also we can not add groups in Watcherlist. Is there anyway(plugin or configuration settings) to do this?
Thanks in advance!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if there is a sender, and a cc: which is a notification group, then the sender will become the reporter, and will receive updates. If that users is part of the distribution group, JIRA has no way of knowing, it doesnt know its a distribution group. There is no file to modify, I don't believe you can fix that behaviour, happy to stand corrected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.