Hello!
I am trying to create an automation, I have had so much trouble with this task though.
Want:
when an incoming ticket is created that needs review - assign a person from a list AND mention them in the comments.
What I have tried:
Automation - When: Issue Created, If: Issue Matches JQL, Then: Assign the issue to, And: Comment, And: Send Email - Assignee
Issue -
SO then I made a second
automation - When: Issue assigned, If: Issue matches JQL, Then: Add Comment to Issue, And: Send email - Assignee
Issue -
only gets triggered when a user manually changes the Assignee.... not when the automation does it - which is what I was trying to solve for.
With multiple attempts & research, I am stuck on what I thought would be a simple problem.
Please help!
Hi @Madison Brooks and welcome to the community!
This is totally, possible, but I have to ask why there is a need to go through all three mechanisms of notification? Provided the notification scheme is set up for default behavior:
This means that every time the team member is assigned an issue they will get at least three emails (not counting any subscriptions they may have set up for themselves).
THANK YOU!
The email was mostly just for testing why my comment was not working, my real goal is to have the user mentioned in a comment on the ticket so that they receive a jira notification (our team only works on @ mentions).
How can I get the assignee to not be null (as seen by my email error) so that I can use it to be mentioned in a comment on the ticket?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nevermind,
I think found the answer to my question elsewhere.
I believe I needed the re-fetch issue data action? Then the assignee will be populated and I can use it to @ mention them in my comments.
Quick suggestion, next time could you please also provide the solution while also asking your question? Saying it "This is totally, possible, but" was not a useful solution to my issue.
If you have other solutions please share as I am excited to learn more about Jira!
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry got called away after your response. I didn't have an exact solution on my first answer until I had additional context in your second and by the time I got back to this, you had found a solution on your own.
You are correct that this is a good scenario for the re-fetch action. If the rule sets the assignee then attempts to take action on that assignment, the rule may still be working under the initial fetch where the assignee was empty so the re-fetch helps recalibrate midstream.
I'm glad you were able to find a solution and hopefully you understand how our wires got crossed between comments... I don't typically "lecture and run" as a practice. 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I have an automation that is adding a comment with mention.
I'm using [~accountid:{{issue.assignee.accountId}}]
for the mention,
But what I get in the comment is [~accountid:ariela]
and no email is sent as a result of the mention....
Any idea what I'm doing wrong?
The action on my automation is:
and the resulting comment on the issue is:
and no email is sent :(
Will appreciate any help ....
Thanks
Ariela
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
RESOLVED
This notation in the automation comment works -
[~:{{issue.assignee.accountId}}]
It interprets to the user mention in the issue, and email is sent as expected
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it didn't work on me :(.
the comment result is like this :
Hi [~:JIRAUSER17615]
even though I have followed the same notation:
Hi [~:{{issue.assignee.accountId}}]
I am using Jira Data Center, is it the cause?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.