How do i get Epic Name to show on an automated email using Jira Smart Values
Asked by Joe Borley:

I am trying to set up an automated email for new risks that are created each week to alert senior management.

the project has Risks as an issue type, each risk is assigned to an Epic which is the project Name

The Lookup issues is using the following JQL:

Project = "Risk Register" AND (Priority in (Highest, high) OR priority was in (Highest, High) OR "Highlight this risk to Senior Management Team\[Dropdown\]" = Yes) AND Created\>= -5d order by created DESC

I have the email working fine and all but the Epic Name are not working correctly

Below is the main content of the email to be sent, with the line in Bold what i am trying to solve. i have tried so many permutations for this but all just seem to return blank.

<br />

{{#lookupIssues}}  
\* \<a href= "{{url}}" \>{{key}}\</a\>

**Project: {{issue.Epic Name}}**

Summary : {{summary}}

Description : {{Description}}

Priority : {{priority.name}}

Assigned to: {{assignee.displayName}}

Created By : {{reporter.displayName}}

Created on : {{issue.created.format("dd/MM/yyyy")}}

<br />

{{/}}

Can anyone advise what Smart Value i should be using here


Answers:
author: JM Perrot
body: Hello [@Joe Borley](/t5/user/viewprofilepage/user-id/4629690)

Did you already try to show the Summary of your Epic with {{issue.parent.epic.summary}} or {{issue.parent.epic.Epic Name}} ?

Let me know if it's convenient, else, I will try a new answer \^\^

Regards,

JM

comments: author: Joe Borley
body: Hey, i just tried both of these, neither of them worked unfortunately


author: JM Perrot
body: Ok, I just tried with these smart values, and it's working for me :

{{Issue.parent.Summary}}  
{{Issue.parent.Epic Name}}

This is working only story, task, bug, etc... not for subtasks (I haven't tried with subtask)


author: Joe Borley
body: Hey JM, unfortunately that still isn't working for me.

I am wondering if its because I am using a custom issue type "risk" instead of a regular Task?


author: JM Perrot
body: I don't think so, excepted if you custom issue type has the hierarchy level 1 (Epic hierarchy) or -1 (subtask hierarchy).

alos to try a smart value, you can create a variable in your automation with this smart value, and print it in the audit log (with Log Action) (or directly put the smart value in the log action).

For example, I created a smart value **WSJF:**

**![Screenshot 2023-09-08 at 10.04.32.png](https://community.atlassian.com/t5/image/serverpage/image-id/279513i02E59293C661504C/image-size/large?v=v2&px=999 "Screenshot 2023-09-08 at 10.04.32.png")**

And you can check in the Audit Log what is wrong.

Can you show me more details on your Issue type if it's possible ?


author: Joe Borley
body: i was finally able to solve this when i had a little spare time. ended up going with;

<br />

{{#lookupIssues}}  
\* \<a href= "{{url}}" \>{{key}}\</a\>

Project : \<a href= "{{Epic Link.url}}" \>{{Epic Link.Summary}}\</a\>

Summary : {{summary}}

Description : {{Description}}

Priority : {{priority.name}}

Assigned to: {{assignee.displayName}}

Created By : {{reporter.displayName}}

Created on : {{issue.created.format("dd/MM/yyyy")}}


Tags: cloud

confluence-cloud