Forums

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

Show initiator name in Jira email (Email Issue JMWE)

Ozan Topkaya October 20, 2023

Hello together

During issue closing, a custom mail is sent to specific user. Since the ticket is not only closed by assignee person. I would like to have in mail exact name of user who is performing the transition. The following mail content is currently working:

 

Hallo zusammen 

Der IT-Security-Incident <b>${issue.getAsString("Key")}</b> mit der Bezeichnung <b>${issue.getAsString("Summary")}</b> wurde abgeschlossen.

Beste Grüsse
${issue.get("Assignee")?.displayName} (${issue.getAsString("Assignee")})

2 answers

1 accepted

0 votes
Answer accepted
Tom Lister
Community Champion
October 20, 2023

HI @Ozan Topkaya 

In JMWE you should be able to access user performing the action as currentUser

Screenshot 2023-10-20 at 14.24.01.png

Ozan Topkaya October 20, 2023

Thank you for the prompt assistance. I have overseen this function of JMWE.

Unfortunately, I can still not managed to display current user name in MailText. I have tried the following in the workflow and get those as a String back in test mails.

 

currentUser
currentUser.name
currentUser.displayName
currentUser.getUserProperty()

David Fischer
Community Champion
October 20, 2023

You probably forgot the ${} around the expression

Ozan Topkaya October 23, 2023

Hello David

It works now with ${}.

Thank you all

0 votes
Tom Lister
Community Champion
October 20, 2023

Suggest an answer

Log in or Sign up to answer