Hi All,
we created some new email templates and we updated the email-template-id-mappings.xml file. After that we restarted JIRA but now it turned out that the mapping was configured wrong. We corrected the event-template mapping file but is there any chance to activate the new mapping without restart?
Thanks,
Rumi
Hi @Rumceisz,
Any changes made to any XML will be visible in application only if it is restarted.
there is an option for auto-reload application xml but it is not advisable for production deployment.
Hi Dipti,
thanks for the hint!
We are still in TEST so we can do everything. Which is that xml or vm (?) where we could set the autoreload?
Thanks,
Rumi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Rumceisz,
Look here for auto-reload of templates :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And, as a reminder, because it's your own question and you seem to be asking exactly the same again: This flag is only for test systems, and becomes unreliable with prolonged uptime and usage.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic,
finally we restarted Jira but the new templates don't work!
More specifically:
1. the templates in the Events and in the config XML are the same
2. the template vm file names in the config XML and in real are the same
3. the new events are applied to the notification scheme
4. the custom events are configured to the workflow...
...and no emails are sent out!
How can we figure out what is the bug behind the email sent out? I mean logs..
Thanks,
Rumi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Enable higher logging of the email classes in logging and profiling - that should tell you what it's doing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic,
finally turned out that my colleague put a security scheme on my test project so none of the test users got email because these could not see even the issue. So my templates were perfect. Sorry for disturbing!
A different question arose in the meanwhile that those events which are not connected to a specific workflow transition: e.g. comment adding, issue deletion, issue assign, worklog added, etc. - where can I add a rule which will be applied to a specific project? I try to find among the event listeners but haven't found so far.
I mean:
if <commentadded> at project=PROJECTKEY
custom_commentEvent
else
default_commnetEvent
Is it possible to do such rule?
Thanks,
Rumi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, bad admin ;-) (For not talking anyway)
You can't add rules - the code is quite simple - it says "on edit, fire event X", "on log work, fire Y" etc. That's it for the system events - certain actions are fixed to fire certain events. Only the workflow lets you fire different events for actions. I seem to remember that the rules for exactly which templates are called are in properties files, but it's a 1:1 mapping, no project rules or anything.
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.