Forums

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

How do i get Epic Name to show on an automated email using Jira Smart Values

Joe Borley September 6, 2023

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.

 


{{#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")}}


{{/}}

 

Can anyone advise what Smart Value i should be using here 

1 answer

1 accepted

0 votes
Answer accepted
JM Perrot
Community Champion
September 6, 2023

Hello @Joe Borley 

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

Joe Borley September 6, 2023

Hey, i just tried both of these, neither of them worked unfortunately 

JM Perrot
Community Champion
September 6, 2023

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)

Joe Borley September 6, 2023

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?

JM Perrot
Community Champion
September 8, 2023

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

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 ?

Joe Borley November 10, 2023

i was finally able to solve this when i had a little spare time. ended up going with;

 


{{#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")}}

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events