Forums

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

Insight Automation Email Notification : Send name of the user triggering the automation

Elward Bosman February 28, 2023

I'm trying to configure and email notification when a user changes an insight object.

According to the documentation: https://confluence.atlassian.com/servicemanagementserver0421/configuring-insight-automation-rules-1115654234.html it is possible to use some fields in the email body.

However I'm not able to find the object referring to the user triggering the automation.

Furthermore, I noticed the "Execute Groovy script" action does get a reference to the "currentUser"

Is there a possibility to get the displayname of the current User in the email body / subject?

Kind regards

 

PS: So far I tried: ${initiator}, ${initiator.displayName}, ${currentUser}  and ${currentUser.displayName} 

1 answer

0 votes
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2023

Hi @Elward Bosman - In the automation, you'll want to use a double curly bracket like this:

{{initiator}}
Elward Bosman March 3, 2023

Hi @Mark Segall ,

Thank you for your response.

I have tested double curly brackets too, however that didn't work either. Just showing "{{initiator}}" in the email body

In the Insight automation "Email notification" documentation, dynamic values are marked with ${field} see bellow:

action_emailnotification

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 3, 2023

Ahh - The screenshot adds context.  So you're not using the Automation for Jira marketplace app (free from Atlassian)?  It appears you're using some legacy insight automation... perhaps from before Atlassian acquired it?

Unfortunately, I'm not familiar with this particular automation engine so I won't be much help.

Elward Bosman March 8, 2023

Hi Mark, true it's JSM 4.20 so it's using a Insights automation and not Automation for Jira. 

So I suppose there is no quick and easy solution. We will upgrade to the latest LTS.

Thank you for the feedback!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events