Hi,
is it possible to run a script when the "Create a new issue or add a comment to an existing issue" mail handler add a comment to an existing issue?
Thanks,
Dominik
You could try: https://jamieechlin.atlassian.net/browse/GRV-13
I don't think I got round to integrating that code.
Failing that you could add listeners, but I don't know how to distinguish events caused by mail handlers vs standard events. You could try checking transientVars and see if there is anything in there.
it's a bit of a hack but i've been using this to see if an issue was created with the mail handler: if ( Thread.currentThread().getStackTrace().grep(~/com.atlassian.jira.plugins.mail.handlers.CreateIssueHandler.*/) ) { // created via mail handler } else { // created some other way }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, i will try https://jamieechlin.atlassian.net/browse/GRV-13
is there still a way to run a script when a comment is generally added? Regardless of where the comment is coming from ... mail handler, transition screens, ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah, use a listener. See https://jamieechlin.atlassian.net/wiki/display/GRV/Listeners
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.