Hi all,
we have the need that JIRA sends out an eMail with a Text like "Dear <Value of User Custom Field>, an issue with ID: <Value of JIRA Issue ID> has been created for you..." on Issue creation.
The default notification does not work here. What ways are there to implement this? Listeners? Post Function? Maybe already a Plugin existant?
Thanks You! Michi
Have you tried the Script Runner plugin? There's a built-in post-function to send a custom email and it says the recipient can be a custom field (though I've never used this bit).
(NB you'll need to move the post-function below where the issue is created)
This plugin can also fire an event for you https://studio.plugins.atlassian.com/wiki/display/GRV/Built-In+Scripts#Built-InScripts-Firesaneventwhenconditionistrue so maybe that could allow both an Issue Created and a custom event to be fired?
Thanks very much for all the great help, the Groovy Runner Plugin did the job absolutely perfect :)!
https://studio.plugins.atlassian.com/wiki/display/GRV/Built-In+Scripts#Built-InScripts-SendCustomEmail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I am afraid you can't have two events. But what you can do is to catch the issue created event in a listener and dispatch your new event in it using IssueEventDispatcher.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jobin: Thanks for now, I checked (http://wiki.customware.net/repository/display/ATLASSIAN/How+to+create+a+custom+event+in+JIRA) and find that the New Event is very good but the problem now is that I can only assign one Event to the Workflow. This is a problem because I need the "Issue Created" Event aswell as the "Send my eMail event". Can i assign 2 Events?
@Nic: We thought about this but what is not wanted by management that the User gets in touch with the JIRA system, the User should only get the info that Support is aware of his problem and he knows the Key. Then he can call our support.
I'm now trying to get a little bit more detail on listeners... I at the moment only created a dummy Plugin with the Atlassian SDK :). That is my to be honest not very good starting point! My hope was that something like that already exeits...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I thought there might be more detail behind it. The case I outlined needs no code, and hence works well for some of my clients, but I think you need something more clever. Which means a Listener.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can do something along these lines.
They should get the mail that all the other users get on creation.
For something more flexible, yes, you'll need a listener or post-function (I'd go for listener myself, as I've struggled with post-functions on create-issue sometimes)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can create a custom issue created event with a new velocity template mapped to it. The new template can have the message as mentioned above.
The new event should be thrown on issue creation by modifying the workflow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check out some notes on customizing mail content as well.
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.