Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Batch Email Templates Not Updating

Matt Wilson
Contributor
May 7, 2025

Am I missing something here?

I'm investigating moving our email notification to the batch method.  At this point I can't get any email I change to be reflected in a Jira email.

i.e.:

I'm modifying IssueUpdateBatcher-content.vm.
I'm creating a new zip, uploading it.
I'm selecting apply.

Nothing I ever add seems to get updated.  I'm literally at this point just trying to add like a "hello world" comment just to see a change.

Am I missing a step?

 

Also other question.  Does anyone know of a way to force batch email sending to run?  I've got mine set in my test environment to the minimum 2 minute value, but I'm impatient...  

3 answers

1 accepted

2 votes
Answer accepted
Matt Wilson
Contributor
May 8, 2025

in case it helps someone else... Its all bug...

https://jira.atlassian.com/browse/JRASERVER-78661

0 votes
Matt Wilson
Contributor
May 8, 2025

I really should have checked my logs first.  Seems like I've got some kind of templates issue, even after a reset and all files are confirmed existing..

Caesium-1-3 ERROR ServiceRunner [velocity] ResourceManager : unable to find resource 'templates/email-batch/html/template.vm' in any resource loader.
2025-05-08 13:18:13,364+0000 Caesium-1-3 ERROR ServiceRunner [velocity] #parse(): cannot find template 'templates/email-batch/html/template.vm', called at getEncodedBodyFromContent[line 2, column 1]
2025-05-08 13:18:13,364+0000 Caesium-1-3 ERROR ServiceRunner [c.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'templates/email-batch/html/template.vm'
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'templates/email-batch/html/template.vm'

At least I know what the issue is now.

0 votes
Stefan Stadler
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.
May 7, 2025

Hi Matt,

I am not directly sure what is going wrong.

My attempt would be to only change some of the already available text values in the file. The reason is that if you add some new values somewhere in the template, it could be ignored due to some errors and you would not see those so easily. So if you just want to confirm your way of changing things is working at all, you should only replace some text snippets without adding new sections.

Furthermore: Are you sure the jar file (the zip file must be renamed to a jar file) includes exactly the same structure as the original does? For example: Is the file directory structure (like the home directory inside the jar) the same? I had an issue with packaging the files and then having one additional directory layer in the jar.

Regarding triggering the batching, I doubt this is possible. You can trigger the mails being sent, but you cannot trigger the batching to "collect" all emails to be sent - at least not as far as I am aware of.

Hope this helps!

Stefan

Matt Wilson
Contributor
May 7, 2025

Hey Stef,

Yes, that is what I'm trying.  At this point I've tried just adding some extra characters to a known table cell.  Just anything to give me a hint that my changes are getting read.  Nothing I put in gets displayed.  The odd part is that I see my changes in the shared template file structure.

The upload is a zip file not a jar.  That is what the gui wants and vets.  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
10.3.2
TAGS
AUG Leaders

Atlassian Community Events