Forums

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

Adding a custom field to email notification does not work...

Christian Borchmann-Backhaus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 17, 2020

Hallo,

i´m trying to add a custom field to the issuecreated mail notification by folowing the howto

It basicly works, but i do not get the field rendered in HTML or the value from the issue.

2020-02-17 15_55_54-Window.png

Any idea what i missed on this basic task?

Thank you...

Christian

2 answers

0 votes
Boris Berenberg - Atlas Authority
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.
February 17, 2020

Are you sure the value you're looking for exists in all notification contexts? For example, does that custom field have a value when that issue is created?

We make Notification Assistant for Jira (web/marketplace)which allows you to easily pick which fields go into your emails via the UI, and then tailor the templates to match specific triggers like events, and filter notifications to match specific JQL. That way in one project you can have an email template that shows Customfield 1 on Issue Create, and Customefield 2 in the other project.

0 votes
Daniel Ebers
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.
February 17, 2020

Hi Christian,

did you insert all the required velocity code from article 4.) of the link you provided (chapter: "Edit the velocity template / Html format" to your velocity template?

Did you also make sure that the proper Customfield ID is selected by 'customfield_id' and the template is referenced in the 'issuecreated.vm'?
Please note that you have to repeat the steps for all templates you want the Custom Field to show up. I only mentioned 'issuecreated.vm' as you showed the screenshot of the "Issue Created" mail.

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer