Forums

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

Use Initiator in automation

Urmo
Contributor
January 2, 2024

Hi

i like to send e-mail with ETI (Email This Issue) but i was speaking them support and did get answer that they don't have any in build solution today to send out e-mail on issue change initiator name.

So i build e-mail form in ETI so if ticket is closed by ticket closing initiator then on initiator send email out. Right now i can send out as reporter or as assignee.

So if i close ticket but i'm not assignee or reporter, then using ETI send out e-mail. How i should write it?

I notice that automation have Initiator

{{initiator.displayName}}

but how i should use it?

image.png

right now it does not work.

with best and happy new year!

Urmo

2 answers

1 accepted

0 votes
Answer accepted
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 2, 2024

Hello, Good day. We need more information on your requirement. Automation rule on the screenshot will edit the initiator field when the issue is updated. You want to send an email to the user mentioned in the Initiator field when the issue is closed?

Urmo
Contributor
January 3, 2024

Hi

I like to send email to Reporter when issue is moved to closed status. When i transition issue to Closed status and i'm not even reporter or assignee then Initiator is me and e-mail is send out as I closed issue. Right now i like to understand how Initiator is picked upt by automation ad added into customfield as value. Then ETI will take this value from customfield and send out email as Initiator is transition maker.

1 vote
Bill Sheboy
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.
January 8, 2024

Hi @Urmo 

For automation rules, the smart value {{initiator}} is the user who perform the action that triggered the rule.  For example, if I transition an issue on the board, my user information would be in {{initiator}} if the rule is triggered on Issue Transitioned. 

Please look here to learn more: https://confluence.atlassian.com/automation/jira-smart-values-users-993924862.html#Jirasmartvaluesusers-initiatorInitiator

 

Would you please clarify your scenario?  It seems this is what you want to do:

  • When someone transitions an issue to Closed status
  • And they are neither the Reporter or the Assignee
  • Send an email to ???

The question is: to whom should the email be sent?  (I would not think it provides value to send the email to the initiator, as they already know the moved the issue to Closed.)

Kind regards,
Bill

Urmo
Contributor
January 11, 2024

Hi

Yes, idea is that when somebody change issue status, then Automation pick up person ho made status change. After that this status change made person name add/update customfield and after that Email This Issue collect customfield value and add it into ETI e-mail.

Right now i don't understand how i should use Initiator.displayName to get it with Automation into custom field.

with best

Urmo

Bill Sheboy
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.
January 11, 2024

What is the type of your custom field?

If it is a user select field, use the entire {{initiator}} or {{initiator.accountId}} values to set the field.

Like Mohanraj Thangamuthu likes this
Urmo
Contributor
January 12, 2024

Seems to be yes, that i did use wrong custom field type and after change into user picker field, it works!

Like # people like this

Suggest an answer

Log in or Sign up to answer