Forums

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

custom e-mail templates - how to get epic name

maciej_gruszczynski
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!
October 24, 2019

Hi

I need to customize e-mail templates and do it with use of official documentation available here: https://confluence.atlassian.com/adminjiraserver/adding-custom-fields-to-emails-batched-notifications-968669988.html?_ga=2.95188383.2011890355.1571836498-1540034935.1564474449

It works very well with custom fields. But I need to add epicName and epicLink to all notifications sent for tasks. How can i do it? 

1 answer

0 votes
Stephen Crandell
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.
October 24, 2019

The EpicLink is a customfield. You should be able to get the customfield ID from the HTML. If you are using Chrome:

  1. Open an issue that has the EpicLink populated
  2. right click on the epicName
  3. Select Inspect
  4. In the html, you should see the DIV for the value
  5. get the customfield ID from the DIV, should be something like customfield_10001 or some other number.

From that ID you should be able to use the Rest API to get the name and I believe the link as well

Suggest an answer

Log in or Sign up to answer