JIRA Notify on Email Ticket Creation

Duncan DAVIES February 21, 2012

Hi


Sorry for kind of bringing this up again, but I have still not worked out a nice solution for this.

Our users generally don't want to recieve notifications of there own changes - a fairly obvious thing

The Reporter recieves notifications at different stages, as well as the Assignee.

Our big issue is with Comments and Creation of tickets

Users can create a ticket via Email OR JIRA interface. We want them to be notified the ticket has been created when its created by email, but not when they create from the interface. At the same time, users should be notified of other people's comments and not there own.

These situations seem to be mutually exclusive from what I can work out. The Notify Me of my own changes we definatly want turned off, but then a user can't be notified of there ticket being created. Are there any nice ways to work around this with a Post Function on create???\

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2012
Hi Duncan, There is workflow post function based on groovy, that let's you send a custom email based on some condition. please check this here: https://studio.plugins.atlassian.com/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Sendacustomemail The condition could check the stack trace and look for some method that is only called when the post function is run in the context of the mail handler. You might add a statement like new Exception().printStackTrace() in the condition first to figure out the methods. Then if you have found a typical stack trace for issues created by the mail handler you could code a condition that gets the current stack using Thread.currentThread().getStackTrace(); and scan for the mail handler specific method.
Duncan DAVIES February 22, 2012

Thanks Dieter, that was the exact type of thing I was looking for!

JT
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 3, 2012

Duncan,

Did you get this working? I could use some help.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events