How do I add a custom field to the automatic emails created by JEMH

I have the custom field I want to add the field to the email and make the hyperlink that is sent not a hyperlink just and ID?

1 answer

Im not clear on the circumstances of where the CF is created, and when it is to be included/converted?

If you are trying to add a specific field to the email, you need to modify a velocity template. You have two choices here, either (a) Use core JIRA notifications and modfiy core JIRA templates (and restart JIRA every time), or (b) Use JEMH IssueListener and JIRA notifications (that selects the JIRA notification scheme, rather than the project doing so) and TemplateSets to customize the content (no restart needed).

I am evaluating JEMH, what I want to do is modify the velocity template to have some of the custom fields I created sent with the automated email that JEMH is sending. I have never worked with velocity before and it is not a language that I have been able to quickly pickup unlike other programing languages.

OK, Velocity is pretty simple, its not a programming language, mostly its concerned with getting values of its 'context' (environment variables if you like), and injecting them into the template.

There is some background reading to be done:

- (I refer to this often)



All standard velocity context parameters are available in JEMH TemplateSets.

See the following tutorial for how to get non-jira users notified by email. It goes through the creation of a custom IssueEvent TemplateSet, and the configuration of the JEMH IssueListener required to broadcast the notification. The process of configuring Non-JIRA user notification is similar to JIRA user notification. The key thing to note is that if JIRA user notification is required, then the JIRA Project must have their 'notification scheme' selection disabled to stop duplicate notifications.

If you need specific support to work through the configuration after reviewing the above, please raise an issue:

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


242 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you